mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
15e98ba7ee24a6904a824f6dfe0e56e0eb6fc2e3
A cut that uploads chunks now writes one intent naming exactly the keys it will upload, at the cut's base HEAD generation with the layer's epoch and holder. The intent is durable before the first upload; if it cannot be written, nothing is uploaded. A cut that only drops chunks writes none. The cut deletes only its own intent, once its outcome is settled: - after the HEAD CAS succeeds, or a HEAD re-read confirms its proposal; - on a clean abort: a failed upload, a refused admission, a fence, or a HEAD that moved past the CAS's base. An unknown CAS outcome keeps the intent with the pending proposal. The next cut deletes it once that proposal is settled, whether it landed or can never land. A failed delete never fails a settled cut; the next cut retries it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%