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

Create a function to clear checkpoint snapshot

    • Storage Engines
    • 2
    • StorEng - 2025-02-14

      Currently, we reset a checkpoint snapshot by doing the following:

          ckpt_snapshot.ckpt_id = 0;
          ckpt_snapshot.oldest_ts = WT_TS_NONE;
          ckpt_snapshot.stable_ts = WT_TS_NONE;
          ckpt_snapshot.snapshot_write_gen = 0;
          ckpt_snapshot.snapshot_max = WT_TXN_MAX;
          ckpt_snapshot.snapshot_min = WT_TXN_MAX;
          ckpt_snapshot.snapshot_txns = NULL;
          ckpt_snapshot.snapshot_count = 0;
      

      We do this in a couple of places, a function would be better so we list what we need to reset in one place.

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

              Created:
              Updated:
              Resolved: