mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-16 02:58:35 +02:00
shell: respect pre-set noLock for fix.replication
This commit is contained in:
1 parent
45cf01333f
commit
2b14e8b826
1 file changed
+1
-1
@@ -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