[pgpool-committers: 4949] pgpool: Fix wrong parameter passed to failover script.
Tatsuo Ishii
ishii at postgresql.org
Tue Aug 7 21:43:30 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].
Branches
--------
SCRAM_AUTH
master
query_cache
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5f387e7e5d9a64616c411d5113ea90148ad144a0
Modified Files
--------------
src/main/pgpool_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the pgpool-committers
mailing list