mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
1ec0404d9d86a6d35d18b7809145e660db959f63
Review follow-up. A restore can pass the master's snapshot check, write its record, and then meet a snapshot deleted in between (refused for good by target creation); a crash, or a removal that fails, leaves the record. The replay then stops at the master's own snapshot check: it now removes the matching not-ready record there, since a recorded dependent keeps its snapshot, so an absent snapshot proves the target was never recorded on the source. A removal that fails answers Unavailable (retry), not the refusal. Tests through the real catalog: a restore of a restore target's snapshot is refused with no filer write and no record; a failure after the dependent's write keeps the record and the replay completes it with the same target id. Renewal on a not-ready name: admitted deletion untyped, committed deletion typed DELETED. 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%