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

Coverity analysis defect 137914: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-05-15

      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/query/optimizer/cascades/logical_rewriter.cpp:1491: DEADCODE 137914 At condition "isIndex", the value of "isIndex" must be equal to 0.
      /src/mongo/db/query/optimizer/cascades/logical_rewriter.cpp:1484: DEADCODE 137914 Condition "isIndex", taking false branch. Now the value of "isIndex" is equal to 0.
      /src/mongo/db/query/optimizer/cascades/logical_rewriter.cpp:1491: DEADCODE 137914 The condition "!isIndex" must be true.

            Assignee:
            david.percy@mongodb.com David Percy
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: