[skip ci] Add comment for hasCollection (#9660)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9674/head
bigsheeper 2021-10-11 19:04:37 +08:00 committed by GitHub
parent 1b128c3fbf
commit dd77e08b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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