mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
97f460d18119ded96d58b201f5f2d508aa15c714
- StorageBackend gains an I/O admission boundary: Read, Write and Sync hold the read side of ioMu for the whole operation, gate included, and check the closed and operational flags once before the lock so I/O arriving during a drain fails at once. StopIO refuses new I/O and waits, bounded by ctx, for the I/O admitted before the stop. - DetachVolume latches the volume as detached for this process (under the attach lock), stops and drains frontend I/O before the periodic loop and the final cut, so no write is acknowledged outside the detached image; a drain that times out fails the detach with I/O still stopped. RecoverVolume and the deferred authority attach no longer reopen a latched volume (ErrChunkLayerDetached); a retry settles the detach and a repeated call returns the first result. - CutVolume takes minLSN: an LSN never written is refused before anything is published (MakeRemoteDurable's refusal), and the cut must reach it. 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%