mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for getCollectionNum (#9719)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/9743/head
parent
ba360d72e3
commit
8a4a232eff
|
@ -204,6 +204,7 @@ func (colReplica *collectionReplica) hasCollectionPrivate(collectionID UniqueID)
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getCollectionNum returns num of collections in collectionReplica
|
||||||
func (colReplica *collectionReplica) getCollectionNum() int {
|
func (colReplica *collectionReplica) getCollectionNum() int {
|
||||||
colReplica.mu.RLock()
|
colReplica.mu.RLock()
|
||||||
defer colReplica.mu.RUnlock()
|
defer colReplica.mu.RUnlock()
|
||||||
|
|
Loading…
Reference in New Issue