[SERVER-18805] Coverity analysis defect 72615: Unchecked return value Created: 03/Jun/15  Updated: 14/Apr/16  Resolved: 20/Jan/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding E (01/08/16), Sharding F (01/29/16)
Participants:

 Description   

Value returned from a function is not checked for errors before being used

Defect 72615 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/s/strategy.cpp
Function mongo::Strategy::clientCommandOp(mongo::Request &)
/src/mongo/s/strategy.cpp, line: 322
Calling "forceRemoteCheckShardVersionCB" without checking return value (as is done elsewhere 1 out of 2 times).

                    if( loops < 4 ) versionManager.forceRemoteCheckShardVersionCB( staleNS );


Generated at Thu Feb 08 03:48:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.