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 25, 2024
1 parent a07fd1d commit af49d40
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 @@ -1129,7 +1129,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 af49d40

Please sign in to comment.