[SERVER-20051] Coverity analysis defect 73038: Unchecked return value Created: 19/Aug/15  Updated: 19/Sep/15  Resolved: 24/Aug/15

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: David Storch
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 8 08/28/15
Participants:

 Description   

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

Defect 73038 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/query/plan_executor.cpp
Function mongo::PlanExecutor::getNextImpl(mongo::Snapshotted<mongo::BSONObj> *, mongo::RecordId *)
/src/mongo/db/query/plan_executor.cpp, line: 372
Calling "yield" without checking return value (as is done elsewhere 2 out of 4 times).

                _yieldPolicy->yield(fetcher.get());



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

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-20051 check return value of PlanYieldPolicy::yield()
Branch: master
https://github.com/mongodb/mongo/commit/e27d3ac58320f3bc1f39ab97825e2fbb4ba6263d

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