[pgpool-committers: 4725] pgpool: Fix wrong parameter passed to failover script.
Tatsuo Ishii
ishii at postgresql.org
Wed May 23 17:29:32 JST 2018
Fix wrong parameter passed to failover script.
From 3.7.2, one of the failover script parameters, namely old primary
node was not passed correctly. PRIMARY_NODE_ID macro was used for the
parameter value. Unfortunately it checks the node status since 3.7.2
and gives value 0 if the node is in down status. The node status
could be down if former primary node was going down. To fix this, use
REAL_PRIMARY_NODE_ID macro which returns the current primary node id
regardless the node status.
Problem reported by Pierre Timmermans in [pgpool-general: 6092].
Branch
------
V3_7_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=92cbc38ea4679af7ca5e6a7e4ca0d667995c0ac7
Modified Files
--------------
src/main/pgpool_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the pgpool-committers
mailing list