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