]> git.saurik.com Git - redis.git/commit
Sentinel: when leader in wait-start, sense another leader as race.
authorantirez <antirez@gmail.com>
Tue, 31 Jul 2012 15:11:26 +0000 (17:11 +0200)
committerantirez <antirez@gmail.com>
Tue, 31 Jul 2012 15:11:26 +0000 (17:11 +0200)
commitfd92b366b0ebe325a2c39e66fecdc2f1cbda6936
tree5b375928e750ce05cd7235aa90181c1abf11dd18
parent91c15ed1b51a0cd097e5c8b0d77edb07f460a866
Sentinel: when leader in wait-start, sense another leader as race.

When we are in wait start, if another leader (or any other external
entity) turns a slave into a master, abort the failover, and detect it
as an observer.

Note that the wait-start state is mainly there for this reason but the
abort was yet not implemented.

This adds a new sentinel event -failover-abort-race.
src/sentinel.c