[pgpool-committers: 3803] pgpool: Fix for [pgpool-general: 5315] pg_terminate_backend
Muhammad Usama
m.usama at gmail.com
Tue Feb 14 04:49:23 JST 2017
Fix for [pgpool-general: 5315] pg_terminate_backend
Pgpool-II process the pg_terminate_backend by setting the swallow_termination
flag of the backend connection_info referred in the pg_terminate_backend
function, and latter resets that flag when the query execution completes.
The problem with this approach is that if the command complete for
the pg_terminate_backend is received before the connection termination,
This termination is regarded as the backend failure since the
swallow_termination flag was already cleared by the Pgpool-II child after
receiving the query completion message.
The solution is to reset the swallow_termination flag only when the
pg_terminate_query query fails otherwise leave it as it is when the query
is successful, Since, after the termination of the connection the flag
will not matter anyway.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=e33b91ae2588377f47ae906268c07adb711724bd
Modified Files
--------------
src/context/pool_query_context.c | 4 ++--
src/include/pcp/libpcp_ext.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
More information about the pgpool-committers
mailing list