[SERVER-27608] Coverity analysis defect 100110: Unchecked return value Created: 09/Jan/17  Updated: 05/Apr/17  Resolved: 11/Jan/17

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
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 2017-01-02
Participants:

 Description   

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

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

                    versionManager.forceRemoteCheckShardVersionCB(txn, staleNS);



 Comments   
Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-27556/SERVER-27608 Fix a Coverity unchecked return value warning
Branch: master
https://github.com/mongodb/mongo/commit/3f51a51845e2c8c5b748905b7f8f472cb379f6e8

Generated at Thu Feb 08 04:15:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.