mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
7e5f1fce7d07c8ddd971a4c3d67b3585b7d956b7
The nine places that installed the layer's HEAD (attach, settlement, adoption, a fence, a cut's finish) go through setHeadLocked, and a cut's finish through setHeadChangedLocked, which updates only its changed chunks. On the v1.1 format they keep the ref table HEAD's when refTableMirror is on; it stays off until the flat map goes (both at once only add memory). TestRefTableMirrorsHeadThroughTheLayer runs the cut, settle, hydration and fill suites on v1.1 with the table on and every table read checked against the map (a mutant that drops a cut's changes fails it). Tests that wrote the layer's HEAD directly now install it. 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%