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

Coverity analysis defect 114371: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Storage
    • Fully Compatible
    • ALL
    • Execution Team 2021-01-25

    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/storage/flow_control.cpp:443: DEADCODE 114371 At condition "currApplied == -1L", the value of "currApplied" must be equal to -1.
      /src/mongo/db/storage/flow_control.cpp:435: DEADCODE 114371 Assigning: "currApplied" = "-1L".
      /src/mongo/db/storage/flow_control.cpp:443: DEADCODE 114371 The condition "currApplied == -1L" must be true.

      Attachments

        Activity

          People

            dan.larkin-york@mongodb.com Dan Larkin-York
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: