Commit 840a9951 authored by zhaozhao.zz's avatar zhaozhao.zz Committed by Oran Agra
Browse files

redis-benchmark: fix wrong random key for hset (#4895)


(cherry picked from commit ff1e4a70)
parent 3c87d572
...@@ -1722,7 +1722,7 @@ int main(int argc, const char **argv) { ...@@ -1722,7 +1722,7 @@ int main(int argc, const char **argv) {
if (test_is_selected("hset")) { if (test_is_selected("hset")) {
len = redisFormatCommand(&cmd, 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); benchmark("HSET",cmd,len);
free(cmd); free(cmd);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment