pgpool2.git / summary / log / commit / refs

commit    171c0e2492ef8b05b01b03ce19fa16882dcb110a
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Tue Jan 11 00:43:30 2011 +0000

    Emit log if particular backend is down status while reading the status file.
    This will make users less confusing.


main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 908493060..9b8d5eda9 100644 --- a/main.c +++ b/main.c @@ -920,7 +920,10 @@ static int read_status_file(bool discard_status) for (i=0;i< pool_config->backend_desc->num_backends;i++) { if (backend_rec.status[i] == CON_DOWN) + { BACKEND_INFO(i).backend_status = CON_DOWN; + pool_log("read_status_file: %d th backend is set to down status", i); + } else { BACKEND_INFO(i).backend_status = CON_CONNECT_WAIT; [parent: 063cfb3f3a28]