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

Coverity analysis defect 128602: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-08-22

    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/catalog/index_catalog_impl.cpp:1368: DEADCODE 128602 Condition "entry.operator bool()", taking true branch. Now the value of "entry" is not "nullptr".
      /src/mongo/db/catalog/index_catalog_impl.cpp:1368: DEADCODE 128602 At condition "entry.operator bool()", the value of "entry" cannot be "nullptr".
      /src/mongo/db/catalog/index_catalog_impl.cpp:1368: DEADCODE 128602 The condition "entry.operator bool()" must be true.

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: