[pgpool-committers: 740] 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_2_STABLE

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

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



More information about the pgpool-committers mailing list