Skip to content

Commit

Permalink
fix: always update seal index
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Apr 19, 2024
1 parent 4cafebf commit 2461da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/curp/src/server/storage/wal/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2461da7

Please sign in to comment.