Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpg: fix sync master selection when one node paused.
If one node is paused it can miss a config change and thus report a larger old_members than expected. The solution is to use the left_nodes field. Master selection used to be "choose node with": 1) largest previous membership 2) (then as a tie-breaker) node with smallest nodeid New selection: 1) largest (previous #nodes - #nodes know to have left) 2) (then as a tie-breaker) node with smallest nodeid Signed-off-by: Angus Salkeld <asalkeld@redhat.com> (cherry picked from commit 956a1dc)
- Loading branch information