Commit 4f6ed341 authored by antirez's avatar antirez
Browse files

Sentinel: log quorum with +monitor event.

parent 55a2e10b
...@@ -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")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment