mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
f4e7ff4be69d06f1c255077530b80938f5f605f9
After a crash, Recover replays a synced write into the dirty map; the flusher drained it to the extent before the chunk layer attached, so the block was not marked local and the next fetch of its absent chunk installed the snapshot's block over the acknowledged write. The durable provider now holds the drain on a walstore-chunk store before Recover (HoldExtentDrainUntilChunkLayer); every flusher drain, the stop's included, does nothing while held; the replayed write stays in the WAL and is served from the dirty map; attach releases the hold, so the first drain marks it local. A held store takes no BASE. Writers of the extent are enumerated by a guard test; INV-CHUNK-LOCAL-BEFORE-FETCH-001. 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%