[pgpool-committers: 3894] pgpool: Check if "milestone close" maybe received or not before checkin

Tatsuo Ishii ishii at postgresql.org
Wed Mar 29 13:22:12 JST 2017


Check if "milestone close" maybe received or not before checking pending data.

pool_push_pending_data() checks fd of backend if buffers are empty
with select(2) timers is 0.  This may loose pending data which is not
processed in backend yet. To minimize the chance loosing pending data,
check the previously received data is "milestone close" (close
complete) or not. If it was not the miles-stone close, set the timer
to "wait forever" because we can be sure that the miles-stone close
will come later. Per pgpool-hackers: 2103.
http://www.pgpool.net/pipermail/pgpool-hackers/2017-March/002103.html

Branch
------
bug271

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

Modified Files
--------------
src/protocol/pool_process_query.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)



More information about the pgpool-committers mailing list