Coverity analysis defect 122253: Logically dead code

XMLWordPrintableJSON

    • Storage Engines
    • Storage Engines - 2022-06-27
    • 1

      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/cppsuite/tests/cache_resize.cpp:163: DEADCODE 122253 Assigning: "first_record" = "false".
      /test/cppsuite/tests/cache_resize.cpp:207: DEADCODE 122253 Condition "first_record", taking false branch. Now the value of "first_record" is equal to 0.
      /test/cppsuite/tests/cache_resize.cpp:207: DEADCODE 122253 At condition "first_record", the value of "first_record" must be equal to 0.
      /test/cppsuite/tests/cache_resize.cpp:207: DEADCODE 122253 The condition "first_record" cannot be true.
      /test/cppsuite/tests/cache_resize.cpp:208: DEADCODE 122253 Execution cannot reach this statement: "first_record = false;".

            Assignee:
            Etienne Petrel
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: