pgpool2.git / summary / log / commit / refs
commit 40719d076ddf7ea1ec1544bd11dae251df7a8856
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Sun Mar 04 02:13:25 2012 +0000
Fix failover(). Before it only restarts worker child only when pgpool
child do not need restart. This is wrong. We need to restart worker
child in any case. Otherwise it continues to send replication time lag
check request to down the node.
main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/main.c b/main.c
index 2eadb9c57..d97af2b37 100644
--- a/main.c
+++ b/main.c
@@ -1889,13 +1889,13 @@ static void failover(void)
{
process_info[i].need_to_restart = 1;
}
-
- /*
- * Send restart request to worker child.
- */
- kill(worker_pid, SIGUSR1);
}
+ /*
+ * Send restart request to worker child.
+ */
+ kill(worker_pid, SIGUSR1);
+
if (Req_info->kind == NODE_UP_REQUEST)
{
pool_log("failback done. reconnect host %s(%d)",
[parent: d95cecac8ae7]