Add comment for removeCollection (#9583)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-09 18:39:48 +08:00 committed by GitHub
parent fe2b3cafba
commit 1b3a7b129b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,7 @@ func (colReplica *collectionReplica) addCollection(collectionID UniqueID, schema
return nil
}
// removeCollection removes the collection from collectionReplica
func (colReplica *collectionReplica) removeCollection(collectionID UniqueID) error {
colReplica.mu.Lock()
defer colReplica.mu.Unlock()