pgpool2.git / summary / log / commit / refs

commit    0670aeb2a578150c6505f1377fd922bd59bf0502
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Wed Oct 29 01:33:31 2014 +0000

    Fix pgpool-II tries to rery even when health_check_max_retries == 0.


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 dbfb60b08..449529f68 100644 --- a/src/main/pgpool_main.c +++ b/src/main/pgpool_main.c @@ -498,7 +498,7 @@ process_backend_health_check_failure(int health_check_node_id, int retrycnt) pool_signal(SIGALRM, SIG_IGN); /* Cancel timer */ CLEAR_ALARM; - if (retrycnt <= health_check_max_retries) + if (health_check_max_retries > 0 && retrycnt <= health_check_max_retries) { /* Keep retrying and sleep a little in between */ ereport(DEBUG1, [parent: f40cd2295071]