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

Fix logically dead code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.2, 4.8.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2020-09-21

      Logically dead code

      The indicated dead code may have performed some action; that action will never occur. Code can never be reached because of a logical contradiction
      /test/csuite/wt6616_checkpoint_oldest_ts/main.c:266: DEADCODE 116287 Assigning: "rand_time" = "false".
      /test/csuite/wt6616_checkpoint_oldest_ts/main.c:276: DEADCODE 116287 Assigning: "rand_time" = "false".
      /test/csuite/wt6616_checkpoint_oldest_ts/main.c:288: DEADCODE 116287 At condition "rand_time", the value of "rand_time" must be equal to 0.
      /test/csuite/wt6616_checkpoint_oldest_ts/main.c:288: DEADCODE 116287 The condition "rand_time" cannot be true.
      /test/csuite/wt6616_checkpoint_oldest_ts/main.c:289: DEADCODE 116287 Execution cannot reach this statement: "timeout = __wt_random(&rnd)...".

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: