[SERVER-21355] Coverity analysis defect 76731: Unchecked return value Created: 09/Nov/15  Updated: 17/Nov/15  Resolved: 09/Nov/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.0-rc3

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Mathias Stearn
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: QuInt C (11/23/15)
Participants:

 Description   

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

Defect 76731 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/repl/sync_tail.cpp
Function mongo::repl::SyncTail::OpQueueBatcher::getNextBatch(std::chrono::duration<long, std::ratio<(long)1, (long)1>>)
/src/mongo/db/repl/sync_tail.cpp, line: 541
Calling "wait_for" without checking return value (as is done elsewhere 7 out of 11 times).

                _cv.wait_for(lk, maxWaitTime);



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

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-21355 Explicitly ignore return value
Branch: master
https://github.com/mongodb/mongo/commit/80d9cd405594db1867c9a03511babed30697e597

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