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

Fix logically dead code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.8.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: