Permalink
Browse files

Sentinel: log quorum with +monitor event.

  • Loading branch information...
1 parent 29f4df8 commit b15411df98fbd1eea941e729c457aff5dee3bfa3 @antirez committed Feb 24, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sentinel.c
View
@@ -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")) {

0 comments on commit b15411d

Please sign in to comment.