From 3ea30b05365d679a02248150b4c9987f0c65e98c Mon Sep 17 00:00:00 2001 From: vinllen Date: Tue, 21 Jan 2020 06:06:39 +0800 Subject: [PATCH] bugfix: in redis 2.8, delete key but convert the returned reply failed. see #227 --- src/redis-shake/common/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-shake/common/utils.go b/src/redis-shake/common/utils.go index 4ebfa0a..9103dcd 100644 --- a/src/redis-shake/common/utils.go +++ b/src/redis-shake/common/utils.go @@ -842,7 +842,7 @@ RESTORE: if conf.Options.TargetReplace { params = append(params, "REPLACE") } else { - _, err = redigo.String(c.Do("del", e.Key)) + _, err = redigoCluster.Int(c.Do("del", e.Key)) if err != nil { log.Panicf("delete key[%v] failed[%v]", string(e.Key), err) }