pingqiuandClaude Opus 5.5 b2862307ac storage: per-cut stats and cumulative cut counters
Every cut now fills its ChunkCutStats:
- barrier pause, sync and copy time;
- candidate, uploaded, zeroed and unchanged chunks, and uploaded bytes;
- upload time; CAS time and result (ok, precondition, unknown,
  resolved-by-reread; empty for a no-op cut);
- total time.

The layer keeps cumulative counters, exposed by Stats():
- cuts ok, no-op and failed;
- refusals by reason (admission, fenced, detached);
- CAS conflicts, and unknown CAS outcomes left unresolved by the HEAD
  re-read;
- whether a proposal is pending, and the current dirty-chunk count (the
  C11 bitmap popcount, for the cut scheduler's threshold);
- the last successful cut's stats, LSN and time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:35:00 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%