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
f03ad962
Unverified
Commit
f03ad962
authored
Jul 02, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jul 02, 2018
Browse files
Merge pull request #5068 from shenlongxing/fix-rename-command
fix empty string for sentinel rename-command
parents
e4881cd0
3c27db1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
f03ad962
...
@@ -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