Create a function to clear checkpoint snapshot

XMLWordPrintableJSON

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

      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
              Reporter:
              Etienne Petrel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: