[pgpool-committers: 737] pgpool: Fix pool_search_relcache() to use MASTER or MASTER_NODE_ID macr

Tatsuo Ishii ishii at postgresql.org
Fri Dec 7 10:28:08 JST 2012


Fix pool_search_relcache() to use MASTER or MASTER_NODE_ID macro,
rather than REAL_MASTER_NODE_ID.  In case node 0 fail back in
streaming replication mode, pgpool does not restart child process.  So
REAL_MASTER_NODE_ID looks for node 0 con info, which is not present
until new connection to backend made. Thus referring to node con info
results in segfault. MASTER or MASTER_NODE_ID are safe in this
situation because they look at cached former master node id.

Branch
------
V3_1_STABLE

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

Modified Files
--------------
pool_relcache.c |    4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list