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

Muhammad Usama m.usama at gmail.com
Tue Aug 7 21:43:31 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.

Branches
--------
SCRAM_AUTH
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=b69e35f2810fcb2867aa4a28fd79dbffede90e04

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