From 43940e96310f65be6e36ab4c63d6acd106493cd3 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Wed, 13 Nov 2024 15:28:06 +0900 Subject: [PATCH] Fix authentication failure after updating pool_passwd and reload. If pool_hba.conf is disabled, updating pool_passwd was not recognized by pgpool child process even if pgpool reload was performed. The reload processing function check_config_reload() mistakenly assumed that reopening pool_passwd was only necessary when enable_pool_hba is on. Backpatch-through: v4.1 Discussion: https://www.pgpool.net/pipermail/pgpool-general/2024-November/001944.html --- src/protocol/child.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/protocol/child.c b/src/protocol/child.c index a8c59aabc..2f4935e70 100644 --- a/src/protocol/child.c +++ b/src/protocol/child.c @@ -1736,9 +1736,10 @@ check_config_reload(void) if (pool_config->enable_pool_hba) { load_hba(get_hba_file_name()); - if (strcmp("", pool_config->pool_passwd)) - pool_reopen_passwd_file(); } + if (strcmp("", pool_config->pool_passwd)) + pool_reopen_passwd_file(); + got_sighup = 0; } } -- 2.39.5