pingqiuandClaude Opus 5.5 f2b9d38885 fix(storage): a cut marks each chunk equal to HEAD as soon as it compares it
A cut recorded its equal-to-HEAD marks only after the whole compare loop,
so a cut that ran out of time kept nothing and the next request compared
every chunk again. After a holder restart a restore target's read-filled
chunks are all candidates of its first cut (the clean-fill records live in
memory only), so at 1 TiB that compare is growing work under one request's
fixed bound. Each equal chunk is now marked at its compare, at the version
the barrier captured and only while the chunk still has it (the same mark
as after the loop), so the next request continues from there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:01:57 -08:00
Languages
Go 84.8%
Rust 7.6%
Shell 2.7%
templ 1.5%
Java 0.9%
Other 2.2%