mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
02d06311f928fcb624d5655c22c12a67f4c313ba
Replaces the separate hold objects with one conditional write on the
parent attempt's own entry (codex01's design):
- Fork adds its claim (target/request) to the entry before using it,
conditioned on {state active, claims as read}; a deleting parent is
refused. It removes its claim once its HEAD exists (or a sweep's
tombstone settles the target).
- Retain marks deleting only conditioned on {state active, gen, no
claims}; a lost condition re-reads and decides again. Claims that
can never matter (target has a HEAD, or its VOLUME is another
request's) are cleared conditionally first; any other claim keeps the
snapshot, with no lifetime. No listing, so no paging.
- A dry run lists attempts a stopped pass left deleting, as apply
frees them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.3%