[SERVER-18891] Coverity analysis defect 72756: Unchecked return value Created: 09/Jun/15  Updated: 25/Jan/17  Resolved: 09/Jun/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Benety Goh
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: RPL 5 06/26/16
Participants:

 Description   

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

Defect 72756 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/repl/base_cloner_test_fixture.cpp
Function mongo::repl::BaseClonerTest::waitForStatus()
/src/mongo/db/repl/base_cloner_test_fixture.cpp, line: 136
Calling "wait_for" without checking return value (as is done elsewhere 7 out of 13 times).

                    _setStatusCondition.wait_for(lk, Milliseconds(1000));



 Comments   
Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-18891 removed unused test function BaseClonerTest::waitForStatus()
Branch: master
https://github.com/mongodb/mongo/commit/b3bbb8d28fb4d9ea0e57a223b88a7defbcfd292a

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