Skip to content

Commit

Permalink
Clean all logs after recovery
Browse files Browse the repository at this point in the history
Allows to make sure no old log is staying after proper recovery

Fixes paritytech#145
  • Loading branch information
Tpt committed Oct 14, 2022
1 parent ca04149 commit e45d9f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ impl DbInner {
c.refresh_metadata()?;
}
log::debug!(target: "parity-db", "Replay is complete.");
log::debug!(target: "parity-db", "Cleaning logs.");
self.clean_all_logs()?;
log::debug!(target: "parity-db", "Log cleanup completed.");
Ok(())
}

Expand Down

0 comments on commit e45d9f4

Please sign in to comment.