[SERVER-76689] Coverity analysis defect 137987: Logically dead code Created: 28/Apr/23  Updated: 29/Oct/23  Resolved: 23/May/23

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

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

Issue Links:
Duplicate
is duplicated by SERVER-76882 Coverity analysis defect 138033: Logi... Closed
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-05-15, QI 2023-05-29
Participants:

 Description   

Logically dead code

The indicated dead code may have performed some action; that action will never occur. Code can never be reached because of a logical contradiction
/src/mongo/db/query/telemetry.cpp:378: DEADCODE 137987 Condition "redactIdentifiers", taking true branch. Now the value of "redactIdentifiers" is equal to 1.
/src/mongo/db/query/telemetry.cpp:404: DEADCODE 137987 Condition "redactIdentifiers", taking true branch. Now the value of "redactIdentifiers" is equal to 1.
/src/mongo/db/query/telemetry.cpp:421: DEADCODE 137987 At condition "redactIdentifiers", the value of "redactIdentifiers" must be equal to 1.
/src/mongo/db/query/telemetry.cpp:421: DEADCODE 137987 The condition "redactIdentifiers" must be true.
/src/mongo/db/query/telemetry.cpp:425: DEADCODE 137987 Execution cannot reach this statement: "<temporary>.BSONObj(key);".



 Comments   
Comment by Will Buerger [ 23/May/23 ]

Fixed with SERVER-73152

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