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:
ProofOfConcept 2026-03-08 18:31:19 -04:00 committed by Kent Overstreet
commit 63910e987c
3 changed files with 154 additions and 16 deletions

View file

@ -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};