[skip ci] Add comment for getCollectionNum (#9719)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-12 19:05:17 +08:00 committed by GitHub
parent ba360d72e3
commit 8a4a232eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,6 +204,7 @@ func (colReplica *collectionReplica) hasCollectionPrivate(collectionID UniqueID)
return ok
}
// getCollectionNum returns num of collections in collectionReplica
func (colReplica *collectionReplica) getCollectionNum() int {
colReplica.mu.RLock()
defer colReplica.mu.RUnlock()