pgpool2.git / summary / log / commit / refs
commit 8e2bd325a3ce1b2e96213eb0fa32bb49df63f304
Author: Guillaume Lelarge <guillaume at lelarge.info>
Date: Mon May 23 19:44:00 2011 +0000
Don't check replication lag if health check is disabled.
pool_worker_child.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pool_worker_child.c b/pool_worker_child.c
index 014190e66..1bd28bfb7 100644
--- a/pool_worker_child.c
+++ b/pool_worker_child.c
@@ -119,7 +119,7 @@ void do_worker_child(void)
* If streaming replication mode, do time lag checking
*/
- if (MASTER_SLAVE && !strcmp(pool_config->master_slave_sub_mode, MODE_STREAMREP))
+ if (pool_config->health_check_period > 0 && MASTER_SLAVE && !strcmp(pool_config->master_slave_sub_mode, MODE_STREAMREP))
{
/* Check and establish persistent connections to the backend */
establish_persistent_connection();
[parent: e4ad2aeea2fd]