From 97992cb852c2e63c7013bbe95f98dc99c1beddce Mon Sep 17 00:00:00 2001 From: David Lutterkort Date: Tue, 17 Jun 2025 15:55:20 -0700 Subject: [PATCH] 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. --- store/postgres/src/relational/prune.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/postgres/src/relational/prune.rs b/store/postgres/src/relational/prune.rs index ed3bf09913b..1c33eca4aeb 100644 --- a/store/postgres/src/relational/prune.rs +++ b/store/postgres/src/relational/prune.rs @@ -828,6 +828,8 @@ mod status { let values = ( pts::phase.eq(Phase::CopyNonfinal), + pts::start_vid.eq(range.min), + pts::next_vid.eq(range.min), pts::nonfinal_vid.eq(range.max), ); self.update_table_state(conn, table, values)