From f97acdd4891b7b318f3fb67b1d8c2b11c809b158 Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 3 Jun 2022 08:45:29 -0700 Subject: [PATCH] volume.fix.replication fix retry logic fix https://github.com/chrislusf/seaweedfs/issues/3136 --- 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 2afcd9cba..4d986d252 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -151,7 +151,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, return err } volumeIdLocationCount = len(volumeLocIds[0].Locations) - if *retryCount > i { + if *retryCount <= i { return fmt.Errorf("replicas volume %s mismatch in topology", volumeId) } i += 1