Skip to content

Commit

Permalink
redis-benchmark: fix wrong random key for hset (redis#4895)
Browse files Browse the repository at this point in the history
  • Loading branch information
soloestoy authored Aug 11, 2020
1 parent 28a8465 commit ff1e4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis-benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,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);
}
Expand Down

0 comments on commit ff1e4a7

Please sign in to comment.