mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-11 14:28:33 +01:00
refactor: close bounded recovery drain and invalidation seams
Move removed-replica drain and replica-scoped invalidation onto explicit core-command paths so the widened multi-replica runtime no longer depends on coarse host-side recovery handling. Made-with: Cursor
This commit is contained in:
1 parent
5fd9ec0edf
commit
43dbebfa04
12 files changed
+751
-151
No files matched your search
@@ -35,6 +35,14 @@ type StartRecoveryTaskCommand struct {
|
||||
|
||||
func (StartRecoveryTaskCommand) commandName() string { return "start_recovery_task" }
|
||||
|
||||
type DrainRecoveryTaskCommand struct {
|
||||
VolumeID string
|
||||
ReplicaID string
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (DrainRecoveryTaskCommand) commandName() string { return "drain_recovery_task" }
|
||||
|
||||
type StartCatchUpCommand struct {
|
||||
VolumeID string
|
||||
ReplicaID string
|
||||
@@ -52,8 +60,9 @@ type StartRebuildCommand struct {
|
||||
func (StartRebuildCommand) commandName() string { return "start_rebuild" }
|
||||
|
||||
type InvalidateSessionCommand struct {
|
||||
VolumeID string
|
||||
Reason string
|
||||
VolumeID string
|
||||
ReplicaID string
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (InvalidateSessionCommand) commandName() string { return "invalidate_session" }
|
||||
|
||||
Reference in new issue
Block a user