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

Coverity analysis defect 136370: Redundant test in timestamp_abort/main

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      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
      /test/csuite/timestamp_abort/main.c:1847: DEADCODE 136370 At condition "verify_only", the value of "verify_only" must be equal to 0.
      /test/csuite/timestamp_abort/main.c:1847: DEADCODE 136370 Condition "verify_only", taking false branch. Now the value of "verify_only" is equal to 0.
      /test/csuite/timestamp_abort/main.c:1711: DEADCODE 136370 Condition "verify_only", taking false branch. Now the value of "verify_only" is equal to 0.
      /test/csuite/timestamp_abort/main.c:1847: DEADCODE 136370 The condition "!verify_only" must be true.

            Assignee:
            peter.macko@mongodb.com Peter Macko
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: