Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions magicblock-api/src/magic_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ impl MagicValidator {
self.ledger_truncator.stop();
// Calls & awaits until manual compaction is canceled
self.ledger.cancel_manual_compactions();
if let Err(err) = self.ledger.flush() {
error!("Failed to flush during shutdown preparation: {:?}", err);
}
}
}

Expand Down
1 change: 0 additions & 1 deletion magicblock-ledger/src/store/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,6 @@ impl Ledger {
measure: Measure::start("Ledger shutdown"),
_timer: start_ledger_shutdown_timer(),
};
self.flush()?;
self.db.backend.db.cancel_all_background_work(wait);

Ok(())
Expand Down