mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
[shell] don't require lock when there are no changes for volume.fix.replication (#6266)
* don't require lock when there are no changes * revert takeAction
This commit is contained in:
parent
a49d9e020c
commit
a143c888e5
@ -73,12 +73,13 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv,
|
||||
return nil
|
||||
}
|
||||
|
||||
if err = commandEnv.confirmIsLocked(args); err != nil {
|
||||
commandEnv.noLock = *skipChange
|
||||
takeAction := !*skipChange
|
||||
|
||||
if err = commandEnv.confirmIsLocked(args); takeAction && err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
takeAction := !*skipChange
|
||||
|
||||
underReplicatedVolumeIdsCount := 1
|
||||
for underReplicatedVolumeIdsCount > 0 {
|
||||
fixedVolumeReplicas := map[string]int{}
|
||||
|
Loading…
Reference in New Issue
Block a user