aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_du.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-05 01:30:24 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-05 01:30:24 -0700
commitede876cfdb0116557dd197a7951957dab6745c24 (patch)
tree50bab90cbf757bb0ad6b3239ed938dfd8d55874e /weed/shell/command_fs_du.go
parentb9e138713c8e2f53cf96132b5ff077ded67c5c20 (diff)
downloadseaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.tar.xz
seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.zip
periodic scripts exeuction from leader master
Diffstat (limited to 'weed/shell/command_fs_du.go')
-rw-r--r--weed/shell/command_fs_du.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_fs_du.go b/weed/shell/command_fs_du.go
index f305cabdc..5e634c82a 100644
--- a/weed/shell/command_fs_du.go
+++ b/weed/shell/command_fs_du.go
@@ -11,7 +11,7 @@ import (
)
func init() {
- commands = append(commands, &commandFsDu{})
+ Commands = append(Commands, &commandFsDu{})
}
type commandFsDu struct {
@@ -30,7 +30,7 @@ func (c *commandFsDu) Help() string {
`
}
-func (c *commandFsDu) Do(args []string, commandEnv *commandEnv, writer io.Writer) (err error) {
+func (c *commandFsDu) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
filerServer, filerPort, path, err := commandEnv.parseUrl(findInputDirectory(args))
if err != nil {
@@ -106,7 +106,7 @@ func paginateDirectory(ctx context.Context, writer io.Writer, client filer_pb.Se
}
-func (env *commandEnv) withFilerClient(ctx context.Context, filerServer string, filerPort int64, fn func(filer_pb.SeaweedFilerClient) error) error {
+func (env *CommandEnv) withFilerClient(ctx context.Context, filerServer string, filerPort int64, fn func(filer_pb.SeaweedFilerClient) error) error {
filerGrpcAddress := fmt.Sprintf("%s:%d", filerServer, filerPort+10000)
return util.WithCachedGrpcClient(ctx, func(grpcConnection *grpc.ClientConn) error {