mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
804bde1832f2d9d628ecad7055ba96802a7bb72c
The release step alone does not look at the target, so as the operator's command it could release a live restore target and leave its foreign references unprotected. It is now used only by the target's own delete (its HEAD already deleting) and by OperatorReleaseDependent, which reads the target first and releases only if it exists and is deleted (HEAD deleting or deleted, or its name holding another volume id) or no root in its live HEAD names a chunk of the source. A live target still naming the source, one being created and one never created (the restore could still create it) are refused, and the source is not written. The package guard restricts the release's callers and requires the operator's read of the target; the HEAD reader enumeration classifies it. 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%