[skip ci] Add comment for addColllection (#9523)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-08 23:53:25 +08:00 committed by GitHub
parent aacfa172ba
commit edea91ae6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,7 @@ func (colReplica *collectionReplica) getCollectionIDs() []UniqueID {
return collectionIDs
}
// addCollection creates a new collection and add it to collectionReplica
func (colReplica *collectionReplica) addCollection(collectionID UniqueID, schema *schemapb.CollectionSchema) error {
colReplica.mu.Lock()
defer colReplica.mu.Unlock()