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

Fix logically dead code

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.4.2, 4.8.0
    • None
    • None
    • 1
    • Storage - Ra 2020-09-21

    Description

      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)...".

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: