From 7c9cab042b4186504840c33bbef5a81fc953fee9 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Sat, 30 Oct 2021 19:02:41 +0800 Subject: [PATCH] [skip ci] Add comments for ReleaseCollection (#10959) Signed-off-by: xige-16 --- internal/querynode/impl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynode/impl.go b/internal/querynode/impl.go index 1d549543f3..76dfd1a5e4 100644 --- a/internal/querynode/impl.go +++ b/internal/querynode/impl.go @@ -328,6 +328,7 @@ func (node *QueryNode) LoadSegments(ctx context.Context, in *queryPb.LoadSegment return waitFunc() } +// ReleaseCollection clears all data related to this collecion on the querynode func (node *QueryNode) ReleaseCollection(ctx context.Context, in *queryPb.ReleaseCollectionRequest) (*commonpb.Status, error) { code := node.stateCode.Load().(internalpb.StateCode) if code != internalpb.StateCode_Healthy {