summaryrefslogtreecommitdiff
path: root/src/redis-benchmark.c
diff options
context:
space:
mode:
authorzhaozhao.zz <276441700@qq.com>2020-08-11 20:51:27 +0800
committerGitHub <noreply@github.com>2020-08-11 20:51:27 +0800
commitff1e4a7063c4de96bba3661f5f282ed61b6dfe8e (patch)
tree01b8c3a9c782db1cc22af4cc4c5c9fa9d6c364d8 /src/redis-benchmark.c
parent28a84651029c56b951e2dcfd149292135fc922a1 (diff)
downloadredis-ff1e4a7063c4de96bba3661f5f282ed61b6dfe8e.tar.gz
redis-benchmark: fix wrong random key for hset (#4895)
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r--src/redis-benchmark.c2
1 files changed, 1 insertions, 1 deletions
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);
}