[skip ci]Add comment for GetSegmentInfo (#10391)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/10401/head
sunby 2021-10-21 21:51:55 +08:00 committed by GitHub
parent 331c630947
commit 4adccbf03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -401,6 +401,13 @@ func (c *Client) GetSegmentInfoChannel(ctx context.Context) (*milvuspb.StringRes
return ret.(*milvuspb.StringResponse), err
}
// GetSegmentInfo requests segment info
//
// ctx is the context to control request deadline and cancellation
// req contains the list of segment ids to query
//
// response struct `GetSegmentInfoResponse` contains the list of segment info
// error is returned only when some communication issue occurs
func (c *Client) GetSegmentInfo(ctx context.Context, req *datapb.GetSegmentInfoRequest) (*datapb.GetSegmentInfoResponse, error) {
ret, err := c.recall(func() (interface{}, error) {
client, err := c.getGrpcClient()