Skip to content

Commit

Permalink
Return shardNum in DescribeCollection (#308)
Browse files Browse the repository at this point in the history
Signed-off-by: wayblink <[email protected]>

Signed-off-by: wayblink <[email protected]>
  • Loading branch information
wayblink authored Sep 8, 2022
1 parent b079ff5 commit a9a79e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/client_grpc_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func (c *grpcClient) DescribeCollection(ctx context.Context, collName string) (*
PhysicalChannels: resp.GetPhysicalChannelNames(),
VirtualChannels: resp.GetVirtualChannelNames(),
ConsistencyLevel: entity.ConsistencyLevel(resp.ConsistencyLevel),
ShardNum: resp.GetShardsNum(),
}
collection.Name = collection.Schema.CollectionName
colInfo := collInfo{
Expand Down
1 change: 1 addition & 0 deletions entity/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type Collection struct {
VirtualChannels []string
Loaded bool
ConsistencyLevel ConsistencyLevel
ShardNum int32
}

// Partition represent partition meta in Milvus
Expand Down

0 comments on commit a9a79e9

Please sign in to comment.