[SERVER-20049] Coverity analysis defect 73042: Unchecked return value Created: 19/Aug/15  Updated: 21/Aug/15  Resolved: 21/Aug/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: David Storch
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-20050 uassert in IDHackStage if on failure ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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

Defect 73042 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/exec/fetch.cpp
Function mongo::FetchStage::doRestoreState()
/src/mongo/db/exec/fetch.cpp, line: 169
Calling "restore" without checking return value (as is done elsewhere 7 out of 13 times).

            _cursor->restore();



 Comments   
Comment by David Storch [ 21/Aug/15 ]

This is essentially the same problem as SERVER-20050. Future work required to improve error handling for RecordCursor::restore() will be included in that ticket. Closing as a duplicate.

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