[SERVER-67547] Coverity analysis defect 122486: Unchecked return value Created: 27/Jun/22  Updated: 29/Oct/23  Resolved: 13/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.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

Attachments: PNG File Screen Shot 2022-06-27 at 1.02.12 PM.png    
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-07-11, Execution Team 2022-07-25
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:1339: CHECKED_RETURN 122486 Calling "update" without checking return value (as is done elsewhere 5 out of 6 times).



 Comments   
Comment by Githook User [ 13/Jul/22 ]

Author:

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

Message: SERVER-67547 Ensure time-series schema update status is as expected
Branch: master
https://github.com/mongodb/mongo/commit/9c85a2300462dbe4e831cae20207a32153cc25a1

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