mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Add comment for metaTable of indexcoord (#8411)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
d308661f63
commit
bd48f6f2db
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user