[SERVER-55977] Coverity analysis defect 118057: Unchecked return value Created: 09/Apr/21  Updated: 29/Oct/23  Resolved: 03/May/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: Benety Goh
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-56585 deprecate MONGO_COMPILER_VARIABLE_UNU... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-05-17
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:1053: CHECKED_RETURN 118057 Calling "_appendUpdates" without checking return value (as is done elsewhere 2 out of 3 times).



 Comments   
Comment by Githook User [ 03/May/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-55977 fix coverity analysis defect 118057: unchecked return value
Branch: master
https://github.com/mongodb/mongo/commit/7d746afd02264f30e766caff7183bd2a8961c27d

Comment by Kyle Suarez [ 09/Apr/21 ]

Ditto for minUpdates(), too.

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