[skip ci] Fix golint warning of meta_table (#9993)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-10-15 20:42:45 +08:00 committed by GitHub
parent 1e11a11c27
commit 0e58b3f70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1283,6 +1283,7 @@ func (mt *MetaTable) AlterAlias(collectionAlias string, collectionName string, t
return nil
}
// IsAlias returns true if specific `collectionAlias` is an alias of collection.
func (mt *MetaTable) IsAlias(collectionAlias string) bool {
mt.ddLock.RLock()
defer mt.ddLock.RUnlock()