mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
e839a773e19a37260495c123041c653b97c1035b
A flusher cycle that started before the owner armed the hold (the flusher runs from open) could pass the entry check, pause, and then drain the dirty map Recover filled after the hold. The hold is now checked under store.mu with the dirty-map snapshot: Recover takes store.mu after the hold is set, so such a cycle sees it (red locally without this: the paused cycle advances the checkpoint 1 -> 2 before attach). writeExtentUnlocked refuses while held and no layer is attached, so a writer the census misses fails loudly. The census counts every reference (calls, aliases, method expressions) per site, with negative controls. Tests: the provider holds on create and open (walstore-chunk only); the post-attach drain advances the checkpoint and a fetch of the chunk keeps the now-local block. block-design.md's WAL lifecycle shows the hold. 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%