[skip ci]Add comment for GetInsertBinlogPaths (#10321)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/10329/head
sunby 2021-10-20 21:30:43 +08:00 committed by GitHub
parent d60cd6ec6e
commit 3fe0604b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -333,6 +333,14 @@ func (c *Client) GetSegmentStates(ctx context.Context, req *datapb.GetSegmentSta
return ret.(*datapb.GetSegmentStatesResponse), err
}
// GetInsertBinlogPaths requests binlog paths for specified segment
//
// ctx is the context to control request deadline and cancellation
// req contains the segment id to query
//
// response struct `GetInsertBinlogPathsResponse` contains the fields list
// and corresponding binlog path list
// error is returned only when some communication issue occurs
func (c *Client) GetInsertBinlogPaths(ctx context.Context, req *datapb.GetInsertBinlogPathsRequest) (*datapb.GetInsertBinlogPathsResponse, error) {
ret, err := c.recall(func() (interface{}, error) {
client, err := c.getGrpcClient()