From c92706c75db678a8d715107ff37f1267a2e4a569 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Thu, 14 Oct 2021 18:54:34 +0800 Subject: [PATCH] [skip ci] Add comment for getPartitionByID (#9892) Signed-off-by: bigsheeper --- internal/querynode/collection_replica.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynode/collection_replica.go b/internal/querynode/collection_replica.go index 1b62e404fb..e29cf4f601 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -309,6 +309,7 @@ func (colReplica *collectionReplica) removePartitionPrivate(partitionID UniqueID return nil } +// getPartitionByID returns the partition which id is partitionID func (colReplica *collectionReplica) getPartitionByID(partitionID UniqueID) (*Partition, error) { colReplica.mu.RLock() defer colReplica.mu.RUnlock()