mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
Recover republishes the dirty map but did not take captureMu, so it could run inside a quiesced cut: after the cut's Sync fixed H and before its copy, a same-open Recover could publish a newer complete record (H+1) and the cut would copy those bytes into a HEAD labelled H. Recover now holds captureMu shared (order captureMu -> lifecycleMu -> mu), as Write, WriteBatch, ApplyEntry and WriteExtentDirect do; nothing calls Recover under captureMu. Control: a real partial batch pwrite leaves a complete record at H+1; the cut parks right after its barrier Sync fixed H and starts a same-open Recover, which waits for the barrier; HEAD at H holds no post-H bytes and the next cut publishes the recovered bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>