[pgpool-committers: 4834] pgpool: Fix for 0000406: failover called with old-primary = -1

Muhammad Usama m.usama at gmail.com
Thu Jun 28 23:40:26 JST 2018

Fix for 0000406: failover called with old-primary = -1

The problem is when the primary node is quarantined the current primary node id
is set to -1 (Invalid), and once after consensus is made the failover never see
the original values for and old-primary.
The fix is to restore the primary node and master node status to the older
states (before the primary node was quarantined) while processing the failover
and failback on quarantined nodes.



Modified Files
src/include/pcp/libpcp_ext.h |   4 +-
src/main/pgpool_main.c       | 134 +++++++++++++++++++++++++++++++++++++------
2 files changed, 118 insertions(+), 20 deletions(-)

More information about the pgpool-committers mailing list