[skip ci] Add comment for hasCollectionPrivate (#9661)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-11 18:56:37 +08:00 committed by GitHub
parent 55af2fa422
commit ba998b1673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,6 +196,7 @@ func (colReplica *collectionReplica) hasCollection(collectionID UniqueID) bool {
return colReplica.hasCollectionPrivate(collectionID)
}
// hasCollectionPrivate is the private function in collectionReplica, to check collection in collectionReplica
func (colReplica *collectionReplica) hasCollectionPrivate(collectionID UniqueID) bool {
_, ok := colReplica.collections[collectionID]
return ok