[pgpool-committers: 738] 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_0_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=34e42c2f9a4a5ce8140456c81c2a3642500e5ccb
Modified Files
--------------
pool_relcache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
More information about the pgpool-committers
mailing list