diff options
| author | Andrew Bruce <me@andrewbruce.net> | 2016-10-05 15:21:47 +0100 |
|---|---|---|
| committer | Andrew Bruce <me@andrewbruce.net> | 2016-10-05 15:21:47 +0100 |
| commit | c1c56a29b098b7c5ad0915a340a2a039e61a22a3 (patch) | |
| tree | 4f5fb822ed7e359a264920650e0522ebc2be6013 /erlang.mk | |
| parent | 75795f977c8b96fa580d58cd9bda049e312b2044 (diff) | |
| download | rabbitmq-server-git-c1c56a29b098b7c5ad0915a340a2a039e61a22a3.tar.gz | |
Choose master from intersection of sync slaves and policy nodes
Previously, when applying an HA policy with the 'nodes' type, if the
current master was not part of the new policy, then the first
synchronised slave was chosen as the new master. This would happen even
if the node was not part of the new policy.
For example, if we began with:
Master A
Slaves [B, C]
Then requested a new policy of just [C], we'd end up with:
Master B
Slaves [C]
Instead, choose the master from the intersection of (nodes in
the policy) and (synchronised slaves).
Issue #990
[#126767013]
Diffstat (limited to 'erlang.mk')
0 files changed, 0 insertions, 0 deletions
