[skip ci] Add comment for getPartitionByIDPrivate (#9978)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9982/head
bigsheeper 2021-10-15 18:34:51 +08:00 committed by GitHub
parent 98ed253e2c
commit 3cff929be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ func (colReplica *collectionReplica) getPartitionByID(partitionID UniqueID) (*Pa
return colReplica.getPartitionByIDPrivate(partitionID)
}
// getPartitionByIDPrivate is the private function in collectionReplica, to get the partition
func (colReplica *collectionReplica) getPartitionByIDPrivate(partitionID UniqueID) (*Partition, error) {
partition, ok := colReplica.partitions[partitionID]
if !ok {