pgpool2.git / summary / log / commit / refs

commit    95cab4078aba5c01c7f33028964b65985faa5fc6
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Thu Jul 13 06:44:41 2017 +0000

    Add log after health check retrying succeeds.
    
    Previously only health check retry logs were produced. So it was not
    clear if the retry succeeded or not in the end.


src/main/health_check.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/health_check.c b/src/main/health_check.c index 5e57e837a..92ad28006 100644 --- a/src/main/health_check.c +++ b/src/main/health_check.c @@ -260,7 +260,15 @@ static bool establish_persistent_connection(int node) } if (slot) + { + if (retry_cnt != pool_config->health_check_max_retries) + { + ereport(LOG, + (errmsg("health check retrying on DB node: %d succeeded", + node))); + } break; /* Success */ + } retry_cnt--; [parent: e6260551c7df]