[SERVER-63873] Coverity analysis defect 121591: Unchecked return value Created: 22/Feb/22  Updated: 27/Oct/23  Resolved: 23/Feb/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Mathis Bessa
Resolution: Works as Designed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-02-22 at 9.58.27 AM.png    
Issue Links:
Problem/Incident
is caused by SERVER-62366 Add forgetShardSplit command Closed
Operating System: ALL
Sprint: Server Serverless 2022-03-07
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/serverless/shard_split_donor_service.cpp:218: CHECKED_RETURN 121591 Calling "runCommand" without checking return value (as is done elsewhere 99 out of 162 times).


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