mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
fe9df65af839d5fed8a6f89d5ffd2d2f5b0d9766
A cut or detach CAS whose outcome is unknown while HEAD still reads its base generation may still be applied by the server later. Reading HEAD alone no longer settles it: the capture keeps the proposal pending, and the next cut, durability point or Detach re-issues the same proposal at the same base. Whichever lands first, HEAD ends at that proposal and the other fails its precondition, so a delayed detach can never land after a no-op cut. The fake remote gains a held CAS mode (casDeferred) and releaseDeferredCAS, which applies held CAS calls later only if HEAD is still at their base. 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%