[skip ci] Add comment for hasPartition (#9979)

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

View File

@ -326,6 +326,7 @@ func (colReplica *collectionReplica) getPartitionByIDPrivate(partitionID UniqueI
return partition, nil
}
// hasPartition returns true if collectionReplica has the partition, false otherwise
func (colReplica *collectionReplica) hasPartition(partitionID UniqueID) bool {
colReplica.mu.RLock()
defer colReplica.mu.RUnlock()