From ffde9f65b5cecf5ea8c60f6849728eb3e14b88e3 Mon Sep 17 00:00:00 2001 From: vinllen Date: Tue, 13 Aug 2019 18:31:39 +0800 Subject: [PATCH] add more debug in rdb restore --- src/redis-shake/common/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/redis-shake/common/utils.go b/src/redis-shake/common/utils.go index b429299..6fb9b35 100644 --- a/src/redis-shake/common/utils.go +++ b/src/redis-shake/common/utils.go @@ -811,6 +811,8 @@ func RestoreRdbEntry(c redigo.Conn, e *rdb.BinEntry) { params = append(params, "FREQ") params = append(params, e.Freq) } + + log.Debugf("restore key[%s] with params[%v]", e.Key, params) // fmt.Printf("key: %v, value: %v params: %v\n", string(e.Key), e.Value, params) // s, err := redigo.String(c.Do("restore", params...)) s, err := redigoCluster.String(c.Do("restore", params...))