Browse Source

volume.fix.replication fix retry logic

fix https://github.com/chrislusf/seaweedfs/issues/3136
pull/3140/head
chrislu 3 years ago
parent
commit
f97acdd489
  1. 2
      weed/shell/command_volume_fix_replication.go

2
weed/shell/command_volume_fix_replication.go

@ -151,7 +151,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv,
return err return err
} }
volumeIdLocationCount = len(volumeLocIds[0].Locations) volumeIdLocationCount = len(volumeLocIds[0].Locations)
if *retryCount > i {
if *retryCount <= i {
return fmt.Errorf("replicas volume %s mismatch in topology", volumeId) return fmt.Errorf("replicas volume %s mismatch in topology", volumeId)
} }
i += 1 i += 1

Loading…
Cancel
Save