[SERVER-20132] Coverity analysis defect 73618: Unchecked return value Created: 26/Aug/15  Updated: 25/Jan/17  Resolved: 26/Aug/15

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

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

 Description   

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

Defect 73618 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/s/balance.cpp
Function mongo::Balancer::_init(mongo::OperationContext *)
/src/mongo/s/balance.cpp, line: 451
Calling "_checkOIDs" without checking return value (as is done elsewhere 1 out of 2 times).

            _checkOIDs(txn);



 Comments   
Comment by Githook User [ 26/Aug/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20132 Check result of _checkOIDs when initializing balancer
Branch: master
https://github.com/mongodb/mongo/commit/48ec3f8b9cd41584cebf62d4d6d2269a18a7bf91

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