From 8cf0c515bfb45c5d8e6c71f96c43f91cae30ea9d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 3 Aug 2021 09:32:55 -0700 Subject: [PATCH] shell: volume.fix.replication retries even when there is no error #2235 fix https://github.com/chrislusf/seaweedfs/issues/2235 --- weed/shell/command_volume_fix_replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index 9e6280788..7e7c0a93d 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -160,7 +160,7 @@ func (c *commandVolumeFixReplication) fixUnderReplicatedVolumes(commandEnv *Comm for _, vid := range underReplicatedVolumeIds { for i := 0; i < retryCount+1; i++ { if err = c.fixOneUnderReplicatedVolume(commandEnv, writer, takeAction, volumeReplicas, vid, allLocations); err == nil { - continue + break } } }