mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
volume.fix.replication fix retry logic
fix https://github.com/chrislusf/seaweedfs/issues/3136
This commit is contained in:
parent
6793bc853c
commit
f97acdd489
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue