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

Remove redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines

      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/block_cache/block_mgr.c:145: DEADCODE 138593 At condition "fsync_ret == 0", the value of "fsync_ret" must be equal to 0.
      /src/block_cache/block_mgr.c:140: DEADCODE 138593 Condition "(_ret = fsync_ret) != 0", taking false branch. Now the value of "_ret" is equal to 0.
      /src/block_cache/block_mgr.c:145: DEADCODE 138593 The condition "fsync_ret == 0" must be true.

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: