[SERVER-70328] Coverity analysis defect 133963: Unchecked return value Created: 07/Oct/22  Updated: 29/Oct/23  Resolved: 21/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Yujin Kang Park
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-10-31
Participants:

 Description   

Unchecked return value

If the function returns an error value, the error value may be mistaken for a normal value. Value returned from a function is not checked for errors before being used.
/src/mongo/db/global_index.cpp:281: CHECKED_RETURN 133963 Calling "getNext" without checking return value (as is done elsewhere 45 out of 48 times).



 Comments   
Comment by Githook User [ 21/Oct/22 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-70328 Fix unused return code in global_index::deleteKey
Branch: master
https://github.com/mongodb/mongo/commit/589f542e76184a9a604ed0465f994093112edab6

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