Browse Source

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

fix https://github.com/chrislusf/seaweedfs/issues/2235
pull/2237/head
Chris Lu 3 years ago
parent
commit
8cf0c515bf
  1. 2
      weed/shell/command_volume_fix_replication.go

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

Loading…
Cancel
Save