[SERVER-50128] Coverity analysis defect 116101: Unchecked return value Created: 05/Aug/20  Updated: 11/Feb/21  Resolved: 11/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Cheahuychou Mao
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-54425 Make TenantMigrationDonorAccessBlocke... Closed
Related
related to SERVER-54425 Make TenantMigrationDonorAccessBlocke... Closed
Operating System: ALL
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/repl/tenant_migration_access_blocker.cpp:102: CHECKED_RETURN 116101 Calling "shouldFail" without checking return value (as is done elsewhere 298 out of 302 times).


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