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

Coverity analysis defect 120706: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2
    • Storage - Ra 2021-10-04

      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/checkpoint/workers.c:278: DEADCODE 120706 Condition "ret != 0", taking false branch. Now the value of "ret" is equal to 0.
      /test/checkpoint/workers.c:276: DEADCODE 120706 At condition "ret == 0", the value of "ret" must be equal to 0.
      /test/checkpoint/workers.c:265: DEADCODE 120706 Condition "(ret = (*session->begin_transaction)(session, begin_cfg)) != 0", taking false branch. Now the value of "ret" is equal to 0.
      /test/checkpoint/workers.c:276: DEADCODE 120706 The condition "ret == 0" must be true.

            Assignee:
            alexey.anisimov@mongodb.com Alexey Anisimov (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: