mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
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:
parent
0b0f872f3f
commit
931beae9b0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user