mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
3dfb612a807c8282001db9d959ec57c1947b5813
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>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%