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

(cherry picked from commit ff1e4a7063c4de96bba3661f5f282ed61b6dfe8e)
This commit is contained in:
zhaozhao.zz 2020-08-11 20:51:27 +08:00 committed by Oran Agra
parent 3c87d572b9
commit 840a9951b5

View File

@ -1722,7 +1722,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);
}