fsck: add store integrity check and repair command
Reads each capnp log message sequentially, validates framing and content. On first corrupt message, truncates to last good position and removes stale caches so next load replays from repaired log. Wired up as `poc-memory fsck`.
This commit is contained in:
parent
d12c28ebcd
commit
63910e987c
3 changed files with 153 additions and 15 deletions
|
|
@ -29,6 +29,7 @@ mod ops;
|
|||
pub use types::*;
|
||||
pub use parse::{MemoryUnit, parse_units};
|
||||
pub use view::{StoreView, AnyView};
|
||||
pub use persist::fsck;
|
||||
|
||||
use crate::graph::{self, Graph};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue