mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
2e078746ee698c615f0e13fd914a84cf9d4a2ef0
- Master: a deletion reservation store (core/lifecycle), separate from the desired-volume records, so an unknown id is reserved too and the ordinary DeleteVolume/CreateVolume path cannot clear it. Held by per-delete tokens (admitted), permanent once committed. Writes reuse the binding store's crash-safe pattern (synced temp file, atomic rename, synced directory); an unknown outcome keeps a protective change in memory (fail closed). MarkVolumeDeleting records it under RecordWorkspaceDeletion's check; new AbortVolumeDeleting and CommitVolumeDeleting. Every gate (publication admission, reconciler, workload planner, binding/placement/move, CreateVolume) consults it. VolumeRecord.Deleting is gone. - Catalog: Admission is Admit/Commit/Abort; ErrNotAdmitted marks a definite refusal, anything else is an unknown outcome (admissionUncertain). Every give-back aborts this delete's admission. A commit point (HEAD deleting -> purging, conditioned on the HEAD read) precedes the irreversible steps; a revert races on the same write, so a delete that sampled a claim cannot undo another delete's commit, and reports an error instead of a give-back. - CreateSnapshot's back-out settles its name like the delete does: the name is freed only after the attempt's tombstone or winning publication is confirmed. 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%