From 5869945f16d1f9c0e5df9b468b610d1380c353d7 Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 10 Feb 2023 13:05:04 -0800 Subject: [PATCH] avoid infinite loop fix https://github.com/seaweedfs/seaweedfs/issues/4195#issuecomment-1426100904 --- weed/shell/command_volume_balance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go index 5380d5e63..1c599b8a0 100644 --- a/weed/shell/command_volume_balance.go +++ b/weed/shell/command_volume_balance.go @@ -330,7 +330,7 @@ func maybeMoveOneVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*Vol } if candidateVolume.RemoteStorageName != "" { - return false, nil + return false, fmt.Errorf("does not move volume in remove storage") } if candidateVolume.ReplicaPlacement > 0 {