未验证 提交 bd48f6f2 编写于 作者: C cai.zhang 提交者: GitHub

Add comment for metaTable of indexcoord (#8411)

Signed-off-by: Ncai.zhang <cai.zhang@zilliz.com>
上级 d308661f
......@@ -29,6 +29,9 @@ import (
"github.com/milvus-io/milvus/internal/proto/indexpb"
)
// Meta is used to record the state of the index.
// revision: The number of times IndexMeta has been changed in ETCD. It's the same as Event.Kv.Version in ETCD.
// indexMeta:A structure that records the state of the index defined by proto.
type Meta struct {
indexMeta *indexpb.IndexMeta
revision int64
......@@ -41,6 +44,7 @@ type metaTable struct {
lock sync.RWMutex
}
// NewMetaTable is used to create a new meta table.
func NewMetaTable(kv *etcdkv.EtcdKV) (*metaTable, error) {
mt := &metaTable{
client: kv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册