Skip to content

Commit 97992cb

Browse files
committed
store: Fix a mistake in how pruning status is reported
When we start copying nonfinal entities, we need to reset the start_vid and next_vid. They don't necessarily have a direct connection to the same values for nonfinal entities; e.g., it is possible that the start_vid for nonfinal entities is smaller than the one for final entities. This change only affects how we report the completion of prune operations; it has no effect on what gets pruned and how.
1 parent f46eeef commit 97992cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

store/postgres/src/relational/prune.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,8 @@ mod status {
828828

829829
let values = (
830830
pts::phase.eq(Phase::CopyNonfinal),
831+
pts::start_vid.eq(range.min),
832+
pts::next_vid.eq(range.min),
831833
pts::nonfinal_vid.eq(range.max),
832834
);
833835
self.update_table_state(conn, table, values)

0 commit comments

Comments
 (0)