From 90ceca8bb5ee6b9e3db211898a8cc4731b055d37 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Mon, 1 Nov 2021 22:58:53 +0800 Subject: [PATCH] [skip ci] Add comments for ReleasePartitions (#11049) 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 d73a0e6fe1..6e0a494814 100644 --- a/internal/querynode/impl.go +++ b/internal/querynode/impl.go @@ -376,6 +376,7 @@ func (node *QueryNode) ReleaseCollection(ctx context.Context, in *queryPb.Releas return status, nil } +// ReleasePartitions clears all data related to this partition on the querynode func (node *QueryNode) ReleasePartitions(ctx context.Context, in *queryPb.ReleasePartitionsRequest) (*commonpb.Status, error) { code := node.stateCode.Load().(internalpb.StateCode) if code != internalpb.StateCode_Healthy {