[pgpool-committers: 2819] pgpool: Fix hang in failover when serialize_accept is on.

Tatsuo Ishii ishii at postgresql.org
Sun Nov 15 11:07:54 JST 2015


Fix hang in failover when serialize_accept is on.

This is due to semaphore for the locking is being left locked when
pgpool child process exits. To prevent the problem, give SEM_UNDO flag
to semop(). Also to clarify which status pgpool child are in, ps
status is shown as "wait for accept lock" when they are waiting for
lock.

Branch
------
master

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

Modified Files
--------------
src/include/pool.h    |    4 ++++
src/protocol/child.c  |   10 +++++++---
src/utils/pool_sema.c |    4 ++--
3 files changed, 13 insertions(+), 5 deletions(-)



More information about the pgpool-committers mailing list