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

Fix incorrect read-only initialization of bm->switch_object_end method

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Engines

      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/block_cache/block_mgr.c:951: UNUSED_VALUE 138594 Overwriting previous write to "bm->switch_object" with value from "__bm_switch_object_end_readonly".
      /src/block_cache/block_mgr.c:950: UNUSED_VALUE 138594 Assigning value from "__bm_switch_object_readonly" to "bm->switch_object" here, but that stored value is overwritten before it can be used.

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: