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

Increment cc_pages_removed when detecting a deleted page to remove

    • 3
    • StorEng - 2023-08-08
    • v7.0, v6.0

      In WT-11406, we found a place where we missed incrementing the checkpoint cleanup statistic tracking the number of pages removed - cc_pages_removed.

      diff --git a/src/btree/bt_sync_obsolete.c b/src/btree/bt_sync_obsolete.c
      index 959ec9b22..513a383d3 100644
      --- a/src/btree/bt_sync_obsolete.c
      +++ b/src/btree/bt_sync_obsolete.c
      @@ -115,6 +115,7 @@ __sync_obsolete_deleted_cleanup(WT_SESSION_IMPL *session, WT_REF *ref)
               WT_RET(__wt_page_parent_modify_set(session, ref, true));
               __wt_verbose_debug2(session, WT_VERB_CHECKPOINT_CLEANUP,
                 "%p: marking obsolete deleted page parent dirty", (void *)ref);
      +        WT_STAT_CONN_DATA_INCR(session, cc_pages_removed);
           } else
               __wt_verbose_debug2(
                 session, WT_VERB_CHECKPOINT_CLEANUP, "%p: skipping deleted page", (void *)ref);
      (END)
      

            Assignee:
            monica.ng@mongodb.com Monica Ng
            Reporter:
            monica.ng@mongodb.com Monica Ng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: