shell: volume.fix.replication retries even when there is no error #2235

fix https://github.com/chrislusf/seaweedfs/issues/2235
This commit is contained in:
Chris Lu 2021-08-03 09:32:55 -07:00
parent d2ddf1dbdb
commit 8cf0c515bf

View file

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