mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
e1fb9cbd0d18da546cf007e743b3cfabba14689c
- The barrier's candidate step no longer walks the chunk map, nor the absent and clean-fill maps. It judges the members of a touched set, a chunk bitmap with a per-word summary (1 bit a chunk), with the same predicate the map scan used: (UNKNOWN and not known equal to HEAD) or above remoteLSN, minus absent chunks with no local write. The barrier takes the set by a pointer swap; readers (status, precopy, the record shadow) list a copy. - The set is a superset of the chunks whose answer may have changed: every map entry change (OnMapEntryChange: a write's LSN, UNKNOWN by a direct or BASE mutation or a reused LSN), every version move, a HEAD install's changed refs (a whole install: the clean fills whose ref changed; a commit: its changed chunks), a recovery (every clean fill), and a once-per-layer seed on first use, outside the pause: every entry UNKNOWN or above remoteLSN, minus absent chunks with no local write. - The cut syncs the store once right before its barrier, outside the pause (PreSyncNs, apart from BarrierPauseNs), so the pause's own sync has only what came after it. - A test fixture that forgets clean-fill marks as a restart now touches those chunks, as a restarted layer's seed does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%