collection list normal and ec volumes

This commit is contained in:
Chris Lu
2019-05-30 09:27:23 -07:00
parent e941d0c2f4
commit 1d111d6ce8
7 changed files with 143 additions and 117 deletions

View File

@@ -16,7 +16,7 @@ func (ms *MasterServer) CollectionList(ctx context.Context, req *master_pb.Colle
}
resp := &master_pb.CollectionListResponse{}
collections := ms.Topo.ListCollections()
collections := ms.Topo.ListCollections(req.IncludeNormalVolumes, req.IncludeEcVolumes)
for _, c := range collections {
resp.Collections = append(resp.Collections, &master_pb.Collection{
Name: c,