1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-20 02:10:20 +02:00

volume.fix.replication fix retry logic

fix https://github.com/chrislusf/seaweedfs/issues/3136
This commit is contained in:
chrislu 2022-06-03 08:45:29 -07:00
parent 6793bc853c
commit f97acdd489

View file

@ -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