From f170658d5b603fbaff0f7941ceacb5ea92cd46bf Mon Sep 17 00:00:00 2001 From: congqixia Date: Fri, 22 Oct 2021 23:37:11 +0800 Subject: [PATCH] [skip ci] Add comment for types.go - Datacoord.GetRecoveryInfo (#10483) Signed-off-by: Congqi Xia --- internal/types/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/types/types.go b/internal/types/types.go index 1d4fd03951..73387bdd1c 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -183,6 +183,14 @@ type DataCoord interface { // response struct `GetSegmentInfoResponse` contains the list of segment info // error is returned only when some communication issue occurs GetSegmentInfo(ctx context.Context, req *datapb.GetSegmentInfoRequest) (*datapb.GetSegmentInfoResponse, error) + + // 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 GetRecoveryInfo(ctx context.Context, req *datapb.GetRecoveryInfoRequest) (*datapb.GetRecoveryInfoResponse, error) SaveBinlogPaths(ctx context.Context, req *datapb.SaveBinlogPathsRequest) (*commonpb.Status, error) GetFlushedSegments(ctx context.Context, req *datapb.GetFlushedSegmentsRequest) (*datapb.GetFlushedSegmentsResponse, error)