Skip to content

Commit

Permalink
Don't flush allocator state after a failed repair
Browse files Browse the repository at this point in the history
If repair fails, our allocator state is inconsistent; don't try to write
it to disk
  • Loading branch information
mconst committed Nov 19, 2024
1 parent b879f35 commit e4f0ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree_store/page_store/page_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ impl TransactionalMemory {

impl Drop for TransactionalMemory {
fn drop(&mut self) {
if thread::panicking() {
if thread::panicking() || self.needs_recovery.load(Ordering::Acquire) {
return;
}

Expand Down

0 comments on commit e4f0ce6

Please sign in to comment.