rewrite_store() used File::create() to truncate and overwrite the entire nodes.capnp log with only the latest version of each node from the in-memory store. This destroyed all historical versions and made no backup. Worse, any node missing from the in-memory store due to a loading bug would be permanently lost. strip_md_keys() now appends migrated nodes to the existing log instead of rewriting it. The dead function is kept with a warning comment explaining what went wrong. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev> |
||
|---|---|---|
| .. | ||
| .claude | ||
| agents | ||
| defaults | ||
| schema | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| config.example.jsonl | ||