]> git.hungrycats.org Git - bees/commit
scan-next: abort a dst plan on any error but a missing file
authorZygo Blaxell <bees@furryterror.org>
Sat, 10 Oct 2026 23:07:14 +0000 (19:07 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 00:48:00 +0000 (20:48 -0400)
commit95607aac5e93daab88fd74510195cece27f2a62c
tree5a16f9f394a93c216125cc963f28d2505b83953b
parente08e5e98c3866ca89f8603bf93473bde8087c29b
scan-next: abort a dst plan on any error but a missing file

The executor ran each dst plan under catch_all, which swallowed
Borrower::Dead along with everything else, and treated every failed
dedupe the same way: a DATA_DIFFERS aborted the dst plan, while the
ref-slice build hid every error from a ref's extent data fetch.

Apply one rule everywhere a dst plan executes:

  - ENOENT means the ref's file is gone.  Skip that ref and keep going
    (plan_ref_enoent).

  - DATA_DIFFERS is not an error.  The refs come from the commit root,
    so they lag live data, and a live change is expected.  Keep going
    and let verification count the ref if it survives.

  - Any other error, and a read-only dst, aborts that dst plan
    (plan_dst_abort).  Other dst plans in the same ExtentPlan still run.

  - Borrower::Dead propagates to the planner.

Assisted-by: Claude-Code:claude-opus-5-5
docs/event-counters.md
src/bees-scan-next.cc