pgpool2.git / summary / log / commit / refs

commit    05e02574ea6cda588ee2ecfe50f6f2d3920174bc
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Tue Jan 08 00:25:03 2013 +0000

    Log that failover is avoided because "fail_over_on_backend_error" is
    turned off. This will reduce confusion caused that the directive is
    off in case health check is turned off as well, because users see that
    pgpool continues to not accept connection requests from clients in
    this case.


pool_connection_pool.c | 4 ++++ pool_stream.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/pool_connection_pool.c b/pool_connection_pool.c index 5b9f909d6..615aeb8d8 100644 --- a/pool_connection_pool.c +++ b/pool_connection_pool.c @@ -658,6 +658,10 @@ static POOL_CONNECTION_POOL *new_connection(POOL_CONNECTION_POOL *p) { notice_backend_error(i); } + else + { + pool_log("new_connection: do not failover because fail_over_on_backend_error is off"); + } child_exit(1); } diff --git a/pool_stream.c b/pool_stream.c index 92cc590da..30e8f7ac3 100644 --- a/pool_stream.c +++ b/pool_stream.c @@ -175,7 +175,10 @@ int pool_read(POOL_CONNECTION *cp, void *buf, int len) child_exit(1); } else + { + pool_log("pool_read: do not failover because fail_over_on_backend_error is off"); return -1; + } } else { @@ -295,7 +298,10 @@ char *pool_read2(POOL_CONNECTION *cp, int len) child_exit(1); } else + { + pool_log("pool_read2: do not failover because fail_over_on_backend_error is off"); return NULL; + } } else { @@ -504,7 +510,10 @@ int pool_flush(POOL_CONNECTION *cp) child_exit(1); } else + { + pool_log("pool_flush: do not failover because fail_over_on_backend_error is off"); return -1; + } } else { [parent: 1671c1256c32]