Include outdated dhandles in cache verbose dump accounting

XMLWordPrintableJSON

    • Storage Engines - Foundations
    • 87.019
    • None
    • None

      The cache verbose dump (__verbose_dump_cache_apply in src/evict/evict_verbose.c) skips any btree dhandle flagged WT_DHANDLE_OUTDATED in addition to WT_DHANDLE_DISCARD.

      An outdated handle (WT_DHANDLE_OUTDATED, 0x400) is still open and can hold cached content, so excluding it from the traversal under-counts the total/dirty/updates byte totals reported by the diagnostic dump. Only genuinely discarded handles (WT_DHANDLE_DISCARD) should be skipped.

      Change: drop WT_DHANDLE_OUTDATED from the skip condition so outdated-but-open handles are included in the cache dump accounting.

      File: src/evict/evict_verbose.c (__verbose_dump_cache_apply)

            Assignee:
            Sid Mahajan
            Reporter:
            Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: