From: Tatsuo Ishii Date: Wed, 14 Jul 2010 07:37:39 +0000 (+0000) Subject: Check health DB nodes before doing delay checking. X-Git-Tag: V3_0_0_BETA1~125 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=63546e97a7b379bbefe3e238288f4098152f16a7;p=pgpool2.git Check health DB nodes before doing delay checking. --- diff --git a/pool_worker_child.c b/pool_worker_child.c index cb9692479..c3e72aabf 100644 --- a/pool_worker_child.c +++ b/pool_worker_child.c @@ -161,6 +161,7 @@ static void establish_persistent_connection(void) static void check_replication_time_lag(void) { int i; + int active_nodes = 0; POOL_STATUS sts; POOL_SELECT_RESULT *res; unsigned long long int lsn[MAX_NUM_BACKENDS]; @@ -174,6 +175,20 @@ static void check_replication_time_lag(void) return; } + /* Count healthy nodes */ + for (i=0;i