From 7ef2b306774c0c75048a8177c0fc5c88ca3d5479 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 8 May 2014 15:59:34 +0200 Subject: [PATCH] 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. --- src/sentinel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentinel.c b/src/sentinel.c index fa312586b..4f2c6c0f9 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2127,6 +2127,7 @@ void sentinelProcessHelloMessage(char *hello, int hello_len) { { sentinelAddr *old_addr; + sentinelEvent(REDIS_WARNING,"+config-update-from",si,"%@"); sentinelEvent(REDIS_WARNING,"+switch-master", master,"%s %s %d %s %d", master->name,