mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
c7900bb57cf3cce26a7a54abcbcd337d6d7305f6
RemoveUnreachable is the cleaning's removal step for one pool shard: for the holder with its own clean(session) open, it deletes each candidate chunk that no root in HEAD (current or any snapshot) names in this volume's pool, and checks its own lease immediately before every delete. HEAD is read once after BeginClean: no commit can add a root while the cleaning is open, and a claim that voids it waits for this lease to end, which the next check sees. An unreadable root or segment stops the pass before any delete; a lapsed lease stops it before the next one; an open snapshot refuses it. The package guard now allows Delete/Remove names only in RemoveUnreachable and requires a lease check before every delete in the same block (controls: no check, check after the delete, one check before the loop). The HEAD reader enumeration classifies its read, and the ledger gains the removal row and the read path's row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%