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

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9509/head
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
1 changed files with 1 additions and 0 deletions

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