Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sentinel: log quorum with +monitor event.

  • Loading branch information...
commit b15411df98fbd1eea941e729c457aff5dee3bfa3 1 parent 29f4df8
@antirez authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sentinel.c
View
4 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")) {
Please sign in to comment.
Something went wrong with that request. Please try again.