aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_meta_cat.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-03 09:51:21 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-03 09:51:21 -0700
commitf76a2b2c8a22c97a5811e0ccf1776043ecc4a0f1 (patch)
tree5f264f9c345ce01c845283c69dcb614c0d76e707 /weed/shell/command_fs_meta_cat.go
parent1d56ea24efa8bbbd6ca5b7252a4a83b281930ecb (diff)
downloadseaweedfs-f76a2b2c8a22c97a5811e0ccf1776043ecc4a0f1.tar.xz
seaweedfs-f76a2b2c8a22c97a5811e0ccf1776043ecc4a0f1.zip
printout meta data size
Diffstat (limited to 'weed/shell/command_fs_meta_cat.go')
-rw-r--r--weed/shell/command_fs_meta_cat.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/shell/command_fs_meta_cat.go b/weed/shell/command_fs_meta_cat.go
index 8cba2d520..94ce02596 100644
--- a/weed/shell/command_fs_meta_cat.go
+++ b/weed/shell/command_fs_meta_cat.go
@@ -2,6 +2,7 @@ package shell
import (
"fmt"
+ "github.com/golang/protobuf/proto"
"io"
"sort"
@@ -69,6 +70,9 @@ func (c *commandFsMetaCat) Do(args []string, commandEnv *CommandEnv, writer io.W
fmt.Fprintf(writer, "%s\n", text)
+ bytes, err := proto.Marshal(respLookupEntry.Entry)
+ fmt.Fprintf(writer, "chunks %d meta size: %d\n", len(respLookupEntry.Entry.Chunks), len(bytes))
+
return nil
})