From e4746e8c6efa1be2f5c8b2a14461b3c90fa410d9 Mon Sep 17 00:00:00 2001 From: jaime Date: Tue, 7 Dec 2021 09:42:15 +0800 Subject: [PATCH] [skip ci] Add a function comment for LoadWithPrefix2 (#12828) Signed-off-by: yun.zhang Co-authored-by: yun.zhang --- internal/kv/etcd/embed_etcd_kv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/kv/etcd/embed_etcd_kv.go b/internal/kv/etcd/embed_etcd_kv.go index 944db0c997..9608c845e8 100644 --- a/internal/kv/etcd/embed_etcd_kv.go +++ b/internal/kv/etcd/embed_etcd_kv.go @@ -97,6 +97,7 @@ func (kv *EmbedEtcdKV) LoadWithPrefix(key string) ([]string, []string, error) { return keys, values, nil } +// LoadWithPrefix2 returns all the keys and values with versions by the given key prefix func (kv *EmbedEtcdKV) LoadWithPrefix2(key string) ([]string, []string, []int64, error) { key = path.Join(kv.rootPath, key) log.Debug("LoadWithPrefix ", zap.String("prefix", key))