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

Dead assignment to hs_dhandle

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Checkpoints
    • Storage Engines
    • StorEng - 2025-02-28

      Unused value

      An assigned value that is never used may represent unnecessary computation, an incorrect algorithm, or possibly the need for cleanup or refactoring. A value assigned to a variable is never used.
      /src/checkpoint/checkpoint_txn.c:1255: UNUSED_VALUE 168104 Overwriting previous write to "hs_dhandle" with value from "session->dhandle".
      /src/checkpoint/checkpoint_txn.c:1076: UNUSED_VALUE 168104 Assigning value "NULL" to "hs_dhandle" here, but that stored value is overwritten before it can be used.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: