[SERVER-20041] Coverity analysis defect 73575: Unchecked return value Created: 19/Aug/15  Updated: 25/Jan/17  Resolved: 21/Aug/15

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

Type: Bug Priority: Trivial - P5
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
Participants:

 Description   

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

Defect 73575 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/storage/record_store_test_randomiter.cpp
Function mongo::UnitTest_RecordStoreTestHarness_GetRandomIteratorSingleton::_doTest()
/src/mongo/db/storage/record_store_test_randomiter.cpp, line: 170
Calling "restore" without checking return value (as is done elsewhere 7 out of 14 times).

            cursor->restore();



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

Author:

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

Message: SERVER-20041 check RecordCursor::restore() result in test
Branch: master
https://github.com/mongodb/mongo/commit/836c3f0c6b898d1a1f8b49a23830e95a58f4b9f7

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