pgpool2.git / summary / log / commit / refs
commit f889c7159a63a3ab111d9ec0ef36fce3c754bd46
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Thu Feb 05 00:24:42 2009 +0000
Fix/add comments
main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 54017b850..e90602fbb 100644
--- a/main.c
+++ b/main.c
@@ -1343,6 +1343,10 @@ static void failover(void)
}
switching = 0;
+
+ /* kick wakeup_handler in pcp_child to notice that
+ * faiover/failback done
+ */
kill(pcp_pid, SIGUSR2);
}
@@ -1388,7 +1392,7 @@ int health_check(void)
for (i=0;i<pool_config->backend_desc->num_backends;i++)
{
- pool_debug("health_check: %d the DB node status: %d", i, BACKEND_INFO(i).backend_status);
+ pool_debug("health_check: %d th DB node status: %d", i, BACKEND_INFO(i).backend_status);
if (BACKEND_INFO(i).backend_status == CON_UNUSED ||
BACKEND_INFO(i).backend_status == CON_DOWN)
[parent: 290b57a91bb3]