From db592497762174130f0190546da211a5a99a7fc5 Mon Sep 17 00:00:00 2001 From: ArenaSu <704427617@qq.com> Date: Thu, 13 Jun 2024 17:54:09 +0800 Subject: [PATCH] doc: [skip-e2e] add comments for meta table (#33403) Add commnets for meta table in internal/rootcoord/meta_table.go. Signed-off-by: ArenaSu <704427617@qq.com> --- internal/rootcoord/meta_table.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rootcoord/meta_table.go b/internal/rootcoord/meta_table.go index 3054276271..c77b9f534e 100644 --- a/internal/rootcoord/meta_table.go +++ b/internal/rootcoord/meta_table.go @@ -96,6 +96,7 @@ type IMetaTable interface { ListUserRole(tenant string) ([]string, error) } +// MetaTable is a persistent meta set of all databases, collections and partitions. type MetaTable struct { ctx context.Context catalog metastore.RootCoordCatalog @@ -113,6 +114,7 @@ type MetaTable struct { permissionLock sync.RWMutex } +// NewMetaTable creates a new MetaTable with specified catalog and allocator. func NewMetaTable(ctx context.Context, catalog metastore.RootCoordCatalog, tsoAllocator tso.Allocator) (*MetaTable, error) { mt := &MetaTable{ ctx: contextutil.WithTenantID(ctx, Params.CommonCfg.ClusterName.GetValue()),