-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Checkpoints
-
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.