@@ -64,7 +64,8 @@ CheckpointManager::CheckpointManager(EPStats& st,
6464 maxVisibleSeqno,
6565 {},
6666 maxPrepareSeqno,
67- CheckpointType::Memory);
67+ CheckpointType::Memory,
68+ CheckpointHistorical::No);
6869
6970 if (checkpointConfig.isPersistenceEnabled ()) {
7071 // Register the persistence cursor
@@ -130,7 +131,8 @@ void CheckpointManager::addNewCheckpoint(
130131 lastBySeqno + 1 ,
131132 maxVisibleSeqno,
132133 {},
133- CheckpointType::Memory);
134+ CheckpointType::Memory,
135+ CheckpointHistorical::No);
134136}
135137
136138void CheckpointManager::addNewCheckpoint (
@@ -139,7 +141,8 @@ void CheckpointManager::addNewCheckpoint(
139141 uint64_t snapEndSeqno,
140142 uint64_t visibleSnapEnd,
141143 std::optional<uint64_t > highCompletedSeqno,
142- CheckpointType checkpointType) {
144+ CheckpointType checkpointType,
145+ CheckpointHistorical historical) {
143146 // First, we must close the open checkpoint.
144147 auto * const oldOpenCkptPtr = checkpointList.back ().get ();
145148 auto & oldOpenCkpt = *oldOpenCkptPtr;
@@ -173,7 +176,8 @@ void CheckpointManager::addNewCheckpoint(
173176 visibleSnapEnd,
174177 highCompletedSeqno,
175178 hps,
176- checkpointType);
179+ checkpointType,
180+ historical);
177181
178182 // If cursors reached to the end of its current checkpoint, move it to the
179183 // next checkpoint. That is done to help in making checkpoints eligible for
@@ -219,7 +223,8 @@ void CheckpointManager::addOpenCheckpoint(
219223 uint64_t visibleSnapEnd,
220224 std::optional<uint64_t > highCompletedSeqno,
221225 uint64_t highPreparedSeqno,
222- CheckpointType checkpointType) {
226+ CheckpointType checkpointType,
227+ CheckpointHistorical historical) {
223228 Expects (checkpointList.empty () ||
224229 checkpointList.back ()->getState () ==
225230 checkpoint_state::CHECKPOINT_CLOSED);
@@ -249,7 +254,8 @@ void CheckpointManager::addOpenCheckpoint(
249254 highCompletedSeqno,
250255 highPreparedSeqno,
251256 vb.getId (),
252- checkpointType);
257+ checkpointType,
258+ historical);
253259 // Add an empty-item into the new checkpoint.
254260 // We need this because every CheckpointCursor will point to this empty-item
255261 // at creation. So, the cursor will point at the first actual non-meta item
@@ -1157,7 +1163,8 @@ void CheckpointManager::clear(const std::lock_guard<std::mutex>& lh,
11571163 maxVisibleSeqno,
11581164 {},
11591165 0 , // HPS=0 because we have correct val on disk and in PDM
1160- CheckpointType::Memory);
1166+ CheckpointType::Memory,
1167+ CheckpointHistorical::No);
11611168 resetCursors ();
11621169}
11631170
@@ -1288,7 +1295,8 @@ void CheckpointManager::createSnapshot(
12881295 uint64_t snapEndSeqno,
12891296 std::optional<uint64_t > highCompletedSeqno,
12901297 CheckpointType checkpointType,
1291- uint64_t visibleSnapEnd) {
1298+ uint64_t visibleSnapEnd,
1299+ CheckpointHistorical historical) {
12921300 if (isDiskCheckpointType (checkpointType)) {
12931301 Expects (highCompletedSeqno.has_value ());
12941302 }
@@ -1310,7 +1318,8 @@ void CheckpointManager::createSnapshot(
13101318 snapEndSeqno,
13111319 visibleSnapEnd,
13121320 highCompletedSeqno,
1313- checkpointType);
1321+ checkpointType,
1322+ historical);
13141323}
13151324
13161325void CheckpointManager::extendOpenCheckpoint (uint64_t snapEnd,
0 commit comments