[skip ci] Add comments for ReleasePartitions (#11049)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/11054/head
xige-16 2021-11-01 22:58:53 +08:00 committed by GitHub
parent 4f8083c48d
commit 90ceca8bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {