From 2461da79f1c2b2f61f67c635804b4057e06c3834 Mon Sep 17 00:00:00 2001 From: bsbds <69835502+bsbds@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:32:34 +0800 Subject: [PATCH] fix: always update seal index Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com> --- crates/curp/src/server/storage/wal/segment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/curp/src/server/storage/wal/segment.rs b/crates/curp/src/server/storage/wal/segment.rs index 546d6e094..1be1e85b4 100644 --- a/crates/curp/src/server/storage/wal/segment.rs +++ b/crates/curp/src/server/storage/wal/segment.rs @@ -180,7 +180,7 @@ impl WALSegment { /// Updates the seal index pub(super) fn update_seal_index(&mut self, index: LogIndex) { - self.seal_index = self.seal_index.min(index); + self.seal_index = index; } /// Get the size of the segment