mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 20:39:24 +08:00
shell: do not need to lock to see volume -h
This commit is contained in:
@@ -31,10 +31,6 @@ func (c *commandVolumeDelete) Help() string {
|
||||
|
||||
func (c *commandVolumeDelete) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
|
||||
|
||||
if err = commandEnv.confirmIsLocked(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
volDeleteCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
|
||||
volumeIdInt := volDeleteCommand.Int("volumeId", 0, "the volume id")
|
||||
nodeStr := volDeleteCommand.String("node", "", "the volume server <host>:<port>")
|
||||
@@ -42,6 +38,10 @@ func (c *commandVolumeDelete) Do(args []string, commandEnv *CommandEnv, writer i
|
||||
return nil
|
||||
}
|
||||
|
||||
if err = commandEnv.confirmIsLocked(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
sourceVolumeServer := pb.ServerAddress(*nodeStr)
|
||||
|
||||
volumeId := needle.VolumeId(*volumeIdInt)
|
||||
|
Reference in New Issue
Block a user