From ff1e4a7063c4de96bba3661f5f282ed61b6dfe8e Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" <276441700@qq.com> Date: Tue, 11 Aug 2020 20:51:27 +0800 Subject: [PATCH] redis-benchmark: fix wrong random key for hset (#4895) --- src/redis-benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 9ba381409..fc24afbff 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -1723,7 +1723,7 @@ int main(int argc, const char **argv) { if (test_is_selected("hset")) { len = redisFormatCommand(&cmd, - "HSET myhash:{tag}:__rand_int__ element:__rand_int__ %s",data); + "HSET myhash:{tag} element:__rand_int__ %s",data); benchmark("HSET",cmd,len); free(cmd); }