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

Make handle-related stats private in the checkpoint module

    • Storage Engines
    • 2
    • StorEng - 2025-01-21

      The file checkpoint.h defines the following struct:

      struct __wt_ckpt_handle_stats {
          uint64_t apply;           /* handles applied */
          uint64_t apply_time;      /* applied handles gather time */
          uint64_t drop;            /* handles dropped */
          uint64_t drop_time;       /* handles dropped time */
          uint64_t lock;            /* handles locked */
          uint64_t lock_time;       /* handles locked time */
          uint64_t meta_check;      /* handles metadata check */
          uint64_t meta_check_time; /* handles metadata check time */
          uint64_t skip;            /* handles skipped */
          uint64_t skip_time;       /* skipped handles gather time */
      };
      

      In conn_dhandle.c, we assign their values to statistics, see here and we also reset them to 0, here.

      We could encapsulate this to reduce the exposure of those fields.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: