Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7455

Coverity analysis defect 119966: Redundant test

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 4.4.7, 5.0.0-rc0
    • None
    • None

    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/tiered/tiered_handle.c:353: DEADCODE 119966 At condition "need_local", the value of "need_local" must be equal to 1.
      /src/tiered/tiered_handle.c:312: DEADCODE 119966 Assigning: "need_local" = "true".
      /src/tiered/tiered_handle.c:353: DEADCODE 119966 The condition "need_local" must be true.

      Attachments

        Activity

          People

            sue.loverso@mongodb.com Susan LoVerso
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: