mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for hasCollection (#9660)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/9674/head
parent
1b128c3fbf
commit
dd77e08b9e
|
@ -191,6 +191,7 @@ func (colReplica *collectionReplica) getCollectionByIDPrivate(collectionID Uniqu
|
|||
return collection, nil
|
||||
}
|
||||
|
||||
// hasCollection checks if collectionReplica has the collection which id is collectionID
|
||||
func (colReplica *collectionReplica) hasCollection(collectionID UniqueID) bool {
|
||||
colReplica.mu.RLock()
|
||||
defer colReplica.mu.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue