volume.fix.replication fix retry logic
fix https://github.com/chrislusf/seaweedfs/issues/3136
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user