[SERVER-63829] Coverity analysis defect 121575: Redundant test Created: 18/Feb/22  Updated: 29/Oct/23  Resolved: 23/Feb/22

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

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

Attachments: PNG File Screen Shot 2022-02-18 at 9.34.03 AM.png    
Issue Links:
Problem/Incident
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Redundant test

By the time the program execution reaches the test of this condition there is only one possible outcome for the test. The code at the destination of this branch is not dead, either because this condition is always true or because there is at least one other branch that reaches it. Test always evaluates the same
/src/mongo/db/modules/enterprise/src/fle/query_analysis/resolved_encryption_info.cpp:89: DEADCODE 121575 At condition "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)", the value of "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)" must be equal to 0.
/src/mongo/db/modules/enterprise/src/fle/query_analysis/resolved_encryption_info.cpp:89: DEADCODE 121575 The condition "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)" cannot be true.



 Comments   
Comment by Hana Pearlman [ 23/Feb/22 ]

Fixed by SERVER-63165

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