mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Update command_remote_uncache.go
minor
This commit is contained in:
parent
9ccfc1cfee
commit
f3a334965d
|
@ -4,12 +4,13 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/filer"
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/util"
|
|
||||||
"io"
|
"io"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/filer"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -41,12 +42,12 @@ func (c *commandRemoteUncache) Help() string {
|
||||||
|
|
||||||
func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
|
func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
|
||||||
|
|
||||||
remoteUnmountCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
|
remoteUncacheCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)
|
||||||
|
|
||||||
dir := remoteUnmountCommand.String("dir", "", "a directory in filer")
|
dir := remoteUncacheCommand.String("dir", "", "a directory in filer")
|
||||||
fileFiler := newFileFilter(remoteUnmountCommand)
|
fileFiler := newFileFilter(remoteUncacheCommand)
|
||||||
|
|
||||||
if err = remoteUnmountCommand.Parse(args); err != nil {
|
if err = remoteUncacheCommand.Parse(args); err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue