[SERVER-72398] Coverity analysis defect 134417: Macro compares unsigned to 0 Created: 24/Dec/22  Updated: 20/Jun/23  Resolved: 20/Jun/23

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: Kshitij Gupta
Resolution: Duplicate Votes: 0
Labels: coverity, neweng, sharding-nyc-subteam2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-73200 Coverity analysis defect 134909: Macr... Closed
Related
related to SERVER-73200 Coverity analysis defect 134909: Macr... Closed
Assigned Teams:
Sharding NYC
Operating System: ALL
Sprint: Sharding NYC 2023-06-26
Participants:
Story Points: 1

 Description   

Macro compares unsigned to 0

An unsigned value can never be negative, so this test will always evaluate the same way. An unsigned value can never be less than 0
/src/mongo/db/s/migration_chunk_cloner_source.cpp:726: NO_EFFECT 134417 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "this->_inProgressReads >= 0UL".


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