mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 08:46:54 +08:00
[shell] volume copy add param noLock (#6871)
This commit is contained in:
committed by
GitHub
parent
c26299b05a
commit
958d88cb85
@@ -41,11 +41,14 @@ func (c *commandVolumeCopy) Do(args []string, commandEnv *CommandEnv, writer io.
|
||||
volumeIdInt := volCopyCommand.Int("volumeId", 0, "the volume id")
|
||||
sourceNodeStr := volCopyCommand.String("source", "", "the source volume server <host>:<port>")
|
||||
targetNodeStr := volCopyCommand.String("target", "", "the target volume server <host>:<port>")
|
||||
noLock := volCopyCommand.Bool("noLock", false, "do not lock the admin shell at one's own risk")
|
||||
if err = volCopyCommand.Parse(args); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err = commandEnv.confirmIsLocked(args); err != nil {
|
||||
if *noLock {
|
||||
commandEnv.noLock = true
|
||||
} else if err = commandEnv.confirmIsLocked(args); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user