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

This commit is contained in:
zhaozhao.zz 2020-08-11 20:51:27 +08:00 committed by GitHub
parent 28a8465102
commit ff1e4a7063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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