From db534419f9a9f866d34a63795d3ba03c36e4ea85 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Sat, 16 Oct 2021 21:47:44 +0800 Subject: [PATCH] [skip ci] Add comment for getPartitionNum (#10021) 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 7f648ab05d..181b9e97d2 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -338,6 +338,7 @@ func (colReplica *collectionReplica) hasPartitionPrivate(partitionID UniqueID) b return ok } +// getPartitionNum returns num of partitions func (colReplica *collectionReplica) getPartitionNum() int { colReplica.mu.RLock() defer colReplica.mu.RUnlock()