[pgpool-committers: 1819] pgpool: Fix primary node detection logic.
Muhammad Usama
m.usama at gmail.com
Tue May 6 20:08:08 JST 2014
Fix primary node detection logic.
There's a possibility that primary node is not detected. This happens
in following situation. node 0: primary, node 1: standby. Node 0 goes
down. Health checking detects the fact but local status is not updated
yet. Primary node finding (find_primary_node) runs. Node 0's status is
yet healthy. Because find_primary_node fails to connect to node 0, it
immediately returns -1 and fails to find that fact that node 1 is now
primary.
Fix is just continuing to look for primary node when fails to connect
to a node.
Per [pgpool-general: 2409].
Branch
------
EXCEPTION_MGR
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2c8deed716a18e8fa7880d98874eebe0b0bce2b2
Author: Tatsuo Ishii <ishii at postgresql.org>
Modified Files
--------------
src/main/pgpool_main.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
More information about the pgpool-committers
mailing list