[pgpool-committers: 10506] pgpool: Fix watchdog receive socket creation without IPv6.
Tatsuo Ishii
ishii at postgresql.org
Tue May 27 19:18:04 JST 2025
Fix watchdog receive socket creation without IPv6.
When IPv6 network is not available, it was possible that watchdog
process won't start. Previously wd_create_recv_socket() issued
elog(ERROR) if creation or handling IPv6 socket failed. Unfortunately
at the time when wd_create_recv_socket() is called, the exception
stack is not established, and elog happily converts ERROR to FATAL,
which causes exiting watchdog process, thus exiting pgpool process.
To fix this, the elog(ERROR) calls are changed to elog(LOG).
Reported-by: Bo Peng (pengbo at sraoss.co.jp)
Discussion: https://github.com/pgpool/pgpool2/issues/99
Backpatch-through: v4.6
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7540d06245c7e35fd8c9e746454992bbedea2182
Modified Files
--------------
src/watchdog/watchdog.c | 62 +++++++++++++++++++++----------------------------
1 file changed, 27 insertions(+), 35 deletions(-)
More information about the pgpool-committers
mailing list