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
16c53085
Commit
16c53085
authored
Apr 25, 2021
by
Yang Bodong
Committed by
Oran Agra
May 03, 2021
Browse files
When the password is wrong, redis-benchmark should exit (#8855)
(cherry picked from commit
8423b77f
)
parent
2ccb9263
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
16c53085
...
@@ -1782,8 +1782,10 @@ int main(int argc, const char **argv) {
...
@@ -1782,8 +1782,10 @@ int main(int argc, const char **argv) {
}
else
{
}
else
{
config
.
redis_config
=
config
.
redis_config
=
getRedisConfig
(
config
.
hostip
,
config
.
hostport
,
config
.
hostsocket
);
getRedisConfig
(
config
.
hostip
,
config
.
hostport
,
config
.
hostsocket
);
if
(
config
.
redis_config
==
NULL
)
if
(
config
.
redis_config
==
NULL
)
{
fprintf
(
stderr
,
"WARN: could not fetch server CONFIG
\n
"
);
fprintf
(
stderr
,
"WARN: could not fetch server CONFIG
\n
"
);
exit
(
1
);
}
}
}
if
(
config
.
num_threads
>
0
)
{
if
(
config
.
num_threads
>
0
)
{
pthread_mutex_init
(
&
(
config
.
liveclients_mutex
),
NULL
);
pthread_mutex_init
(
&
(
config
.
liveclients_mutex
),
NULL
);
...
...
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