[pgpool-committers: 4170] pgpool: Fix bug #303.

Tatsuo Ishii ishii at postgresql.org
Thu Aug 3 14:28:54 JST 2017


Fix bug #303.

When failover is triggered by worker process, it is possible that
wrong DB node could failover. This is due to the db_node_id member in
the POLL_CONNECTION structure is not initialized in the process (in
child process the member is properly initialized). To solve the
problem, add new function pool_set_db_node_id() to set the structure
member variable and call it inside
make_persistent_db_connection(). For this purpose also the new
parameter "db_node_id" is added to make_persistent_db_connection and
friends.

Branch
------
V3_3_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=626ef81eef7dacea78726340015cd59f1f4b65d0

Modified Files
--------------
child.c             |  7 ++++---
main.c              |  4 ++--
pool.h              |  2 +-
pool_stream.c       | 10 ++++++++++
pool_stream.h       |  3 ++-
pool_worker_child.c |  2 +-
6 files changed, 20 insertions(+), 8 deletions(-)



More information about the pgpool-committers mailing list