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

Coverity analysis defect 119949: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.7, 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 1
    • Storage - Ra 2021-05-17

      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/evict/evict_page.c:587: DEADCODE 119949 At condition "modified", the value of "modified" must be equal to 1.
      /src/evict/evict_page.c:575: DEADCODE 119949 Condition "modified", taking true branch. Now the value of "modified" is equal to 1.
      /src/evict/evict_page.c:559: DEADCODE 119949 Condition "modified", taking true branch. Now the value of "modified" is equal to 1.
      /src/evict/evict_page.c:551: DEADCODE 119949 Condition "modified", taking true branch. Now the value of "modified" is equal to 1.
      /src/evict/evict_page.c:587: DEADCODE 119949 The condition "modified" must be true.

            Assignee:
            monica.ng@mongodb.com Monica Ng
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: