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
a9c50088
Commit
a9c50088
authored
Jun 25, 2018
by
antirez
Browse files
Sentinel command renaming: fix CONFIG SET event logging.
parent
b72cecd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
a9c50088
...
@@ -3492,7 +3492,23 @@ void sentinelSetCommand(client *c) {
...
@@ -3492,7 +3492,23 @@ void sentinelSetCommand(client *c) {
if
(
changes
)
sentinelFlushConfig
();
if
(
changes
)
sentinelFlushConfig
();
return
;
return
;
}
}
sentinelEvent
(
LL_WARNING
,
"+set"
,
ri
,
"%@ %s %s"
,
option
,
value
);
/* Log the event. */
int
numargs
=
j
-
old_j
+
1
;
switch
(
numargs
)
{
case
2
:
sentinelEvent
(
LL_WARNING
,
"+set"
,
ri
,
"%@ %s %s"
,
c
->
argv
[
old_j
]
->
ptr
,
c
->
argv
[
old_j
+
1
]
->
ptr
);
break
;
case
3
:
sentinelEvent
(
LL_WARNING
,
"+set"
,
ri
,
"%@ %s %s %s"
,
c
->
argv
[
old_j
]
->
ptr
,
c
->
argv
[
old_j
+
1
]
->
ptr
,
c
->
argv
[
old_j
+
2
]
->
ptr
);
break
;
default:
sentinelEvent
(
LL_WARNING
,
"+set"
,
ri
,
"%@ %s"
,
c
->
argv
[
old_j
]
->
ptr
);
break
;
}
}
}
if
(
changes
)
sentinelFlushConfig
();
if
(
changes
)
sentinelFlushConfig
();
...
...
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