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
4f6ed341
Commit
4f6ed341
authored
Feb 24, 2014
by
antirez
Browse files
Sentinel: log quorum with +monitor event.
parent
55a2e10b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
4f6ed341
...
@@ -574,7 +574,7 @@ void sentinelGenerateInitialMonitorEvents(void) {
...
@@ -574,7 +574,7 @@ void sentinelGenerateInitialMonitorEvents(void) {
di
=
dictGetIterator
(
sentinel
.
masters
);
di
=
dictGetIterator
(
sentinel
.
masters
);
while
((
de
=
dictNext
(
di
))
!=
NULL
)
{
while
((
de
=
dictNext
(
di
))
!=
NULL
)
{
sentinelRedisInstance
*
ri
=
dictGetVal
(
de
);
sentinelRedisInstance
*
ri
=
dictGetVal
(
de
);
sentinelEvent
(
REDIS_WARNING
,
"+monitor"
,
ri
,
"%@
"
);
sentinelEvent
(
REDIS_WARNING
,
"+monitor"
,
ri
,
"%@
quorum %d"
,
ri
->
quorum
);
}
}
dictReleaseIterator
(
di
);
dictReleaseIterator
(
di
);
}
}
...
@@ -2558,7 +2558,7 @@ void sentinelCommand(redisClient *c) {
...
@@ -2558,7 +2558,7 @@ void sentinelCommand(redisClient *c) {
}
}
}
else
{
}
else
{
sentinelFlushConfig
();
sentinelFlushConfig
();
sentinelEvent
(
REDIS_WARNING
,
"+monitor"
,
ri
,
"%@
"
);
sentinelEvent
(
REDIS_WARNING
,
"+monitor"
,
ri
,
"%@
quorum %d"
,
ri
->
quorum
);
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
}
}
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"remove"
))
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"remove"
))
{
...
...
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