shard id starts from zero

This commit is contained in:
Chris Lu
2019-05-24 11:52:23 -07:00
parent 24b8ad9a14
commit 228850d588
5 changed files with 89 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ func writeDataNodeInfo(writer io.Writer, t *master_pb.DataNodeInfo) statistics {
for _, vi := range t.VolumeInfos {
s = s.plus(writeVolumeInformationMessage(writer, vi))
}
for _, ecShardInfo := range t.EcShardInfos {
fmt.Fprintf(writer, " ec %+v \n", ecShardInfo)
}
fmt.Fprintf(writer, " DataNode %s %+v \n", t.Id, s)
return s
}