pgpool2.git / summary / log / commit / refs
commit f40cd22950712a64c8ccb7e51da97eb47e3e8967
Author: Muhammad Usama <m.usama@gmail.com>
Date: Tue Oct 28 09:22:17 2014 +0000
Fix for "[pgpool-hackers: 621] pgpool-II ignores heath check retry"
The reason was a typo in process_backend_health_check_failure() function where
the function tries to figure out the max health check retry count for current
pgpool-II configuration. Instead of using pool_config->health_check_max_retries
configuration for max retry count the function was mistakenly considering
pool_config->health_check_retry_delay for the purpose.
src/main/pgpool_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c
index 665052050..dbfb60b08 100644
--- a/src/main/pgpool_main.c
+++ b/src/main/pgpool_main.c
@@ -493,7 +493,7 @@ process_backend_health_check_failure(int health_check_node_id, int retrycnt)
pool_config->health_check_period/NUM_BACKENDS : pool_config->health_check_retry_delay;
int health_check_max_retries = pool_config->parallel_mode ?
- (NUM_BACKENDS - 1) : pool_config->health_check_retry_delay;
+ (NUM_BACKENDS - 1) : pool_config->health_check_max_retries;
pool_signal(SIGALRM, SIG_IGN); /* Cancel timer */
CLEAR_ALARM;
[parent: d1c95663aaee]