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>
This commit is contained in:
ArenaSu 2024-06-13 17:54:09 +08:00 committed by GitHub
parent ca1f7ab019
commit db59249776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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