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