diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-24 13:28:44 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-24 13:28:44 -0700 |
| commit | 6f4b09b6a46f63eaebbbc23198d3ec73754ed11d (patch) | |
| tree | 152c9dd2bb7fd551480322e4299b2aa29a5fe9bc /weed/shell/command_volume_list.go | |
| parent | 228850d58888174d5f0d84c7f0f9506fb4360176 (diff) | |
| download | seaweedfs-6f4b09b6a46f63eaebbbc23198d3ec73754ed11d.tar.xz seaweedfs-6f4b09b6a46f63eaebbbc23198d3ec73754ed11d.zip | |
pb shard info uses ShardBits instead one message for one shard
Diffstat (limited to 'weed/shell/command_volume_list.go')
| -rw-r--r-- | weed/shell/command_volume_list.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index 171f862c9..a402c1e51 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -4,6 +4,8 @@ import ( "context" "fmt" "github.com/chrislusf/seaweedfs/weed/pb/master_pb" + "github.com/chrislusf/seaweedfs/weed/storage/erasure_coding" + "io" "sort" ) @@ -89,7 +91,7 @@ func writeDataNodeInfo(writer io.Writer, t *master_pb.DataNodeInfo) statistics { s = s.plus(writeVolumeInformationMessage(writer, vi)) } for _, ecShardInfo := range t.EcShardInfos { - fmt.Fprintf(writer, " ec %+v \n", ecShardInfo) + fmt.Fprintf(writer, " ec volume id:%v collection:%v shards:%v\n", ecShardInfo.Id, ecShardInfo.Collection, erasure_coding.ShardBits(ecShardInfo.EcIndexBits).ShardIds()) } fmt.Fprintf(writer, " DataNode %s %+v \n", t.Id, s) return s |
