[SERVER-20044] Coverity analysis defect 73579: Unchecked return value Created: 19/Aug/15  Updated: 25/Sep/15  Resolved: 25/Sep/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Andy Schwerin
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
Participants:

 Description   

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

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

                    versionManager.forceRemoteCheckShardVersionCB(txn, staleNS);



 Comments   
Comment by Andy Schwerin [ 25/Sep/15 ]

The return value is irrelevant in this case, as the correct response in all cases is to keep going.

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