[skip ci]Add comment for GetRecoveryInfo (#10605)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/10610/head
sunby 2021-10-25 21:22:31 +08:00 committed by GitHub
parent 3030454eb9
commit 1888b7e1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -452,6 +452,13 @@ func (c *Client) SaveBinlogPaths(ctx context.Context, req *datapb.SaveBinlogPath
return client.SaveBinlogPaths(ctx, req)
}
// GetRecoveryInfo request segment recovery info of collection/partition
//
// ctx is the context to control request deadline and cancellation
// req contains the collection/partition id to query
//
// response struct `GetRecoveryInfoResponse` contains the list of segments info and corresponding vchannel info
// error is returned only when some communication issue occurs
func (c *Client) GetRecoveryInfo(ctx context.Context, req *datapb.GetRecoveryInfoRequest) (*datapb.GetRecoveryInfoResponse, error) {
ret, err := c.recall(func() (interface{}, error) {
client, err := c.getGrpcClient()