[skip ci] Add comment for getPartitionNum (#10021)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-16 21:47:44 +08:00 committed by GitHub
parent 9f958f4b00
commit db534419f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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