mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
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>