[SERVER-55773] Coverity analysis defect 118033: Unchecked return value Created: 04/Apr/21  Updated: 29/Oct/23  Resolved: 12/Apr/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Dan Larkin-York
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 2021-04-19
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/timeseries/bucket_catalog.cpp:452: CHECKED_RETURN 118033 Calling "_removeBucket" without checking return value (as is done elsewhere 1 out of 2 times).



 Comments   
Comment by Githook User [ 12/Apr/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-55773 Explicitly ignore unchecked return value in BucketCatalog::_abort
Branch: master
https://github.com/mongodb/mongo/commit/ed27ec70a2e4199b40465531451f3afd3570b9c8

Generated at Thu Feb 08 05:37:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.