redis-benchmark: fix wrong random key for hset (#4895)
(cherry picked from commit ff1e4a7063c4de96bba3661f5f282ed61b6dfe8e)
This commit is contained in:
parent
3c87d572b9
commit
840a9951b5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user