avoid infinite loop
fix https://github.com/seaweedfs/seaweedfs/issues/4195#issuecomment-1426100904
This commit is contained in:
@@ -330,7 +330,7 @@ func maybeMoveOneVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*Vol
|
|||||||
}
|
}
|
||||||
|
|
||||||
if candidateVolume.RemoteStorageName != "" {
|
if candidateVolume.RemoteStorageName != "" {
|
||||||
return false, nil
|
return false, fmt.Errorf("does not move volume in remove storage")
|
||||||
}
|
}
|
||||||
|
|
||||||
if candidateVolume.ReplicaPlacement > 0 {
|
if candidateVolume.ReplicaPlacement > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user