-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query
-
ALL
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/pipeline/expression.cpp:884: DEADCODE 114409 At condition "cmp > 0", the value of "cmp" must be at least 1.
/src/mongo/db/pipeline/expression.cpp:884: DEADCODE 114409 At condition "cmp > 0", the value of "cmp" cannot be equal to 0.
/src/mongo/db/pipeline/expression.cpp:882: DEADCODE 114409 Condition "cmp < 0", taking false branch. Now the value of "cmp" is at least 1.
/src/mongo/db/pipeline/expression.cpp:880: DEADCODE 114409 Condition "cmp == 0", taking false branch. Now the value of "cmp" cannot be equal to 0.
/src/mongo/db/pipeline/expression.cpp:884: DEADCODE 114409 The condition "cmp > 0" must be true.
- is related to
-
SERVER-49363 Triage Coverity Issues for Query code base
- Closed