Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ff1e4a70
Unverified
Commit
ff1e4a70
authored
Aug 11, 2020
by
zhaozhao.zz
Committed by
GitHub
Aug 11, 2020
Browse files
redis-benchmark: fix wrong random key for hset (#4895)
parent
28a84651
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
ff1e4a70
...
@@ -1723,7 +1723,7 @@ int main(int argc, const char **argv) {
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment