[skip ci] Add comment for collectionReplica (#9980)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9981/head
bigsheeper 2021-10-15 18:38:36 +08:00 committed by GitHub
parent 0f1de9757b
commit 14b77405f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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