redis-benchmark: fix wrong random key for hset (#4895)
This commit is contained in:
parent
a9a1e4925f
commit
b1a242b84a
@ -1723,7 +1723,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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user