mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid infinite loop
fix https://github.com/seaweedfs/seaweedfs/issues/4195#issuecomment-1426100904
This commit is contained in:
parent
e037c71ec3
commit
5869945f16
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue