From b15411df98fbd1eea941e729c457aff5dee3bfa3 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 24 Feb 2014 17:10:20 +0100 Subject: [PATCH] Sentinel: log quorum with +monitor event. --- src/sentinel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index a32854344..a96375a79 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -574,7 +574,7 @@ void sentinelGenerateInitialMonitorEvents(void) { di = dictGetIterator(sentinel.masters); while((de = dictNext(di)) != NULL) { sentinelRedisInstance *ri = dictGetVal(de); - sentinelEvent(REDIS_WARNING,"+monitor",ri,"%@"); + sentinelEvent(REDIS_WARNING,"+monitor",ri,"%@ quorum %d",ri->quorum); } dictReleaseIterator(di); } @@ -2558,7 +2558,7 @@ void sentinelCommand(redisClient *c) { } } else { sentinelFlushConfig(); - sentinelEvent(REDIS_WARNING,"+monitor",ri,"%@"); + sentinelEvent(REDIS_WARNING,"+monitor",ri,"%@ quorum %d",ri->quorum); addReply(c,shared.ok); } } else if (!strcasecmp(c->argv[1]->ptr,"remove")) {