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

Coverity analysis defect 137914: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-05-15

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: