From 14b77405f4af3b321c8c75986e3130cf36206956 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Fri, 15 Oct 2021 18:38:36 +0800 Subject: [PATCH] [skip ci] Add comment for collectionReplica (#9980) 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 dfc0dcd94d..f7b1dd9dbf 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -333,6 +333,7 @@ func (colReplica *collectionReplica) hasPartition(partitionID UniqueID) bool { return colReplica.hasPartitionPrivate(partitionID) } +// hasPartitionPrivate is the private function in collectionReplica, to check if collectionReplica has the partition func (colReplica *collectionReplica) hasPartitionPrivate(partitionID UniqueID) bool { _, ok := colReplica.partitions[partitionID] return ok