mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-06-13 23:36:45 +03:00
shell: respect pre-set noLock for fix.replication
This commit is contained in:
@@ -82,7 +82,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv,
|
||||
|
||||
handleDeprecatedForceFlag(writer, volFixReplicationCommand, applyChangesAlias, applyChanges)
|
||||
infoAboutSimulationMode(writer, *applyChanges, "-apply")
|
||||
commandEnv.noLock = !*applyChanges
|
||||
commandEnv.noLock = commandEnv.noLock || !*applyChanges
|
||||
|
||||
if err = commandEnv.confirmIsLocked(args); *applyChanges && err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user