Sentinel: generate +config-update-from event when a new config is received.

This event makes clear, before the switch-master event is generated,
that a Sentinel received a configuration update from another Sentinel.
This commit is contained in:
antirez 2014-05-08 15:59:34 +02:00
parent d8ffd2b2ba
commit c738f0f4fc

View File

@ -2127,6 +2127,7 @@ void sentinelProcessHelloMessage(char *hello, int hello_len) {
{ {
sentinelAddr *old_addr; sentinelAddr *old_addr;
sentinelEvent(REDIS_WARNING,"+config-update-from",si,"%@");
sentinelEvent(REDIS_WARNING,"+switch-master", sentinelEvent(REDIS_WARNING,"+switch-master",
master,"%s %s %d %s %d", master,"%s %s %d %s %d",
master->name, master->name,