From 0e58b3f70a206eaa0d3b6f6e10a0c412f4d89dae Mon Sep 17 00:00:00 2001 From: dragondriver Date: Fri, 15 Oct 2021 20:42:45 +0800 Subject: [PATCH] [skip ci] Fix golint warning of meta_table (#9993) Signed-off-by: dragondriver --- internal/rootcoord/meta_table.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/rootcoord/meta_table.go b/internal/rootcoord/meta_table.go index 6e6246cf3d..b775386cc3 100644 --- a/internal/rootcoord/meta_table.go +++ b/internal/rootcoord/meta_table.go @@ -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()