diff options
author | zhaozhao.zz <276441700@qq.com> | 2020-08-11 20:51:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 20:51:27 +0800 |
commit | ff1e4a7063c4de96bba3661f5f282ed61b6dfe8e (patch) | |
tree | 01b8c3a9c782db1cc22af4cc4c5c9fa9d6c364d8 /src/redis-benchmark.c | |
parent | 28a84651029c56b951e2dcfd149292135fc922a1 (diff) | |
download | redis-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.c | 2 |
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); } |