diff options
author | Tatsuo Ishii | 2024-11-13 06:28:06 +0000 |
---|---|---|
committer | Tatsuo Ishii | 2024-11-13 06:28:06 +0000 |
commit | 06f4f0894712cb4fa5f228e4959c7af8f1dfe9f2 (patch) | |
tree | bc3249f449ffa01a2563789c1982298ca02f697c /src | |
parent | 2c9c23629d567c572b83cede0bc42a9877effeff (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/child.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocol/child.c b/src/protocol/child.c index ee7437770..53a4cce68 100644 --- a/src/protocol/child.c +++ b/src/protocol/child.c @@ -1805,9 +1805,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; } } |