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
3c27db1c
Commit
3c27db1c
authored
Jun 28, 2018
by
shenlongxing
Browse files
fix empty string for sentinel rename-command
parent
345b4809
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
3c27db1c
...
@@ -3482,6 +3482,11 @@ void sentinelSetCommand(client *c) {
...
@@ -3482,6 +3482,11 @@ void sentinelSetCommand(client *c) {
sds
oldname
=
c
->
argv
[
++
j
]
->
ptr
;
sds
oldname
=
c
->
argv
[
++
j
]
->
ptr
;
sds
newname
=
c
->
argv
[
++
j
]
->
ptr
;
sds
newname
=
c
->
argv
[
++
j
]
->
ptr
;
if
((
sdslen
(
oldname
)
==
0
)
||
(
sdslen
(
newname
)
==
0
))
{
badarg
=
sdslen
(
newname
)
?
j
-
1
:
j
;
goto
badfmt
;
}
/* Remove any older renaming for this command. */
/* Remove any older renaming for this command. */
dictDelete
(
ri
->
renamed_commands
,
oldname
);
dictDelete
(
ri
->
renamed_commands
,
oldname
);
...
...
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