Skip to content

Commit

Permalink
fix: fix watermark updates
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Oct 27, 2024
1 parent d7b2979 commit d6c6690
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions foyer-storage/src/large/recover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ impl RecoverRunner {
}
region_manager.reclaim_semaphore().add_permits(permits);
region_manager.reclaim_semaphore_countdown().reset(countdown);
// Update the manifest sequence watermark with the smallest possible value.
config.manifest.update_sequence_watermark(seq).await?;
if watermark > seq {
// Update the manifest sequence watermark with the smallest possible value.
config.manifest.update_sequence_watermark(seq).await?;
}

// Note: About reclaim semaphore permits and countdown:
//
Expand Down

0 comments on commit d6c6690

Please sign in to comment.