未验证 提交 44596111 编写于 作者: E edward.zeng 提交者: GitHub

[skip ci] Refine datacoord meta comment (#13112)

Signed-off-by: NEdward Zeng <jie.zeng@zilliz.com>
上级 c5a17e15
......@@ -49,7 +49,7 @@ type meta struct {
segments *SegmentsInfo // segment id to segment info
}
// NewMeta create meta from provided `kv.TxnKV`
// NewMeta creates meta from provided `kv.TxnKV`
func newMeta(kv kv.TxnKV) (*meta, error) {
mt := &meta{
client: kv,
......@@ -63,7 +63,7 @@ func newMeta(kv kv.TxnKV) (*meta, error) {
return mt, nil
}
// reloadFromKV load meta from KV storage
// reloadFromKV loads meta from KV storage
func (m *meta) reloadFromKV() error {
_, values, err := m.client.LoadWithPrefix(segmentPrefix)
if err != nil {
......@@ -82,7 +82,7 @@ func (m *meta) reloadFromKV() error {
return nil
}
// AddCollection add collection into meta
// AddCollection adds a collection into meta
// Note that collection info is just for caching and will not be set into etcd from datacoord
func (m *meta) AddCollection(collection *datapb.CollectionInfo) {
m.Lock()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册