aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-02-10 13:05:04 -0800
committerchrislu <chris.lu@gmail.com>2023-02-10 13:05:04 -0800
commit5869945f16d1f9c0e5df9b468b610d1380c353d7 (patch)
treee49e9eaa4ad6d94f563af03fbbbd60b54675b973 /weed/shell/command_volume_balance.go
parente037c71ec32c6c89861a6f21e53729811dc3e3df (diff)
downloadseaweedfs-5869945f16d1f9c0e5df9b468b610d1380c353d7.tar.xz
seaweedfs-5869945f16d1f9c0e5df9b468b610d1380c353d7.zip
avoid infinite loop
fix https://github.com/seaweedfs/seaweedfs/issues/4195#issuecomment-1426100904
Diffstat (limited to 'weed/shell/command_volume_balance.go')
-rw-r--r--weed/shell/command_volume_balance.go2
1 files changed, 1 insertions, 1 deletions
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 {