mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
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:
parent
ca1f7ab019
commit
db59249776
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user