mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-10 18:04:46 +08:00
fix return value
This commit is contained in:
@@ -62,7 +62,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
|
|||||||
isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix")
|
isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix")
|
||||||
apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration")
|
apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration")
|
||||||
if err = fsConfigureCommand.Parse(args); err != nil {
|
if err = fsConfigureCommand.Parse(args); err != nil {
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fc, err := filer.ReadFilerConf(commandEnv.option.FilerAddress, commandEnv.option.GrpcDialOption, commandEnv.MasterClient)
|
fc, err := filer.ReadFilerConf(commandEnv.option.FilerAddress, commandEnv.option.GrpcDialOption, commandEnv.MasterClient)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func (c *commandVacuum) Do(args []string, commandEnv *CommandEnv, writer io.Writ
|
|||||||
collection := volumeVacuumCommand.String("collection", "", "vacuum this collection")
|
collection := volumeVacuumCommand.String("collection", "", "vacuum this collection")
|
||||||
volumeId := volumeVacuumCommand.Uint("volumeId", 0, "the volume id")
|
volumeId := volumeVacuumCommand.Uint("volumeId", 0, "the volume id")
|
||||||
if err = volumeVacuumCommand.Parse(args); err != nil {
|
if err = volumeVacuumCommand.Parse(args); err != nil {
|
||||||
return
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = commandEnv.confirmIsLocked(args); err != nil {
|
if err = commandEnv.confirmIsLocked(args); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user