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
be6ce8a9
Unverified
Commit
be6ce8a9
authored
May 24, 2021
by
Wen Hui
Committed by
GitHub
May 24, 2021
Browse files
fix sentinel test failure (#8983)
fix for recent breakage from #8958, did a mistake when updating the pr.
parent
ae6f5869
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
be6ce8a9
...
...
@@ -3162,12 +3162,12 @@ void sentinelConfigSetCommand(client *c) {
}
else
if
(
!
strcasecmp
(
o
->
ptr
,
"sentinel-user"
))
{
sdsfree
(
sentinel
.
sentinel_auth_user
);
sentinel
.
sentinel_auth_user
=
sdslen
(
val
->
ptr
)
==
0
?
sdsdup
(
val
->
ptr
)
:
NULL
;
NULL
:
sdsdup
(
val
->
ptr
);
drop_conns
=
1
;
}
else
if
(
!
strcasecmp
(
o
->
ptr
,
"sentinel-pass"
))
{
sdsfree
(
sentinel
.
sentinel_auth_pass
);
sentinel
.
sentinel_auth_pass
=
sdslen
(
val
->
ptr
)
==
0
?
sdsdup
(
val
->
ptr
)
:
NULL
;
NULL
:
sdsdup
(
val
->
ptr
);
drop_conns
=
1
;
}
else
{
addReplyErrorFormat
(
c
,
"Invalid argument '%s' to SENTINEL CONFIG SET"
,
...
...
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