Skip to content

Commit

Permalink
fix: log pointers are left behind after reboot (with low-perf nodes)
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed Nov 2, 2024
1 parent 9ffa95d commit 7376369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sorock/src/process/command_log/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ impl CommandLog {
};

self.insert_snapshot(new_snapshot_entry).await?;
self.commit_pointer
.fetch_max(proposed_snapshot_index - 1, Ordering::SeqCst);
self.kern_pointer
.fetch_max(proposed_snapshot_index - 1, Ordering::SeqCst);
self.user_pointer
.fetch_max(proposed_snapshot_index - 1, Ordering::SeqCst);
}

Ok(())
Expand Down

0 comments on commit 7376369

Please sign in to comment.