Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50829

Coverity analysis defect 114409: Redundant test

    • 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.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: