mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
88aea4c7ed8a03526d596822c393ef28fafb7368
- HydrateAll admits each fill as a background fill permit with no cut payload (the real limiter refuses a payload for BackgroundFill, so no fill ever ran), and the permit now belongs to the flight: the walker queues the shared flight without becoming a waiter and a layer-owned goroutine releases the permit when the flight's I/O is over (new settled signal, closed by the worker after fillOnce or when an unrun flight is removed), also after an early return on cancel, revocation or close. The limiter's abort callback stops the walker. The flight lookup is factored into hydrationFlightLocked (shared with OnReadMissContext, no behaviour change there). - CreateSnapshot on a restore volume also checks the supplied image: a cut saved before the marker that still names another volume's chunks is refused. - dropIntent keeps outliving the caller's cancellation but is bounded by dropIntentTimeout (it had no deadline at all). - Tests: the real hostlimit limiter (fill permits, payload 0, all released), permit held while a cancelled walker's Get is held, revocation, a witnessed pause for guests, cancel returning while the Get is held, bounded joins; stale pre-independence image refused; aborted first HEAD keeps the parent as fork_parent until the target is deleted; dropIntent bounded. - Docs: invariants.md M4/M6 rows and INV-RESTORE-* rows, GC owner rooting recorded as load-bearing in INV-GC-REACHABLE-001; restore diagram in the workspace design; RestoreIndependence in docs/spec/README.md (simulation). 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%