diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-03 09:32:55 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-03 09:32:55 -0700 |
| commit | 8cf0c515bfb45c5d8e6c71f96c43f91cae30ea9d (patch) | |
| tree | 27aa65515ffb36e89a49cf9a6dc081d8469c93ba | |
| parent | d2ddf1dbdbc788cf807fd12ac9f7151bd2d625bb (diff) | |
| download | seaweedfs-8cf0c515bfb45c5d8e6c71f96c43f91cae30ea9d.tar.xz seaweedfs-8cf0c515bfb45c5d8e6c71f96c43f91cae30ea9d.zip | |
shell: volume.fix.replication retries even when there is no error #2235
fix https://github.com/chrislusf/seaweedfs/issues/2235
| -rw-r--r-- | weed/shell/command_volume_fix_replication.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index 9e6280788..7e7c0a93d 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/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 } } } |
