pgpool2.git / summary / log / commit / refs
commit be0c09b5c6b80b22dcc2d3875e194ba55f15d6a7
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Wed Oct 12 22:51:58 2011 +0000
Update cached backend status whenever possible.
This solves the problem of follow_master_command not being able to
lookup backend status correctly which was reported by Jeff Frost:
Subject: [Pgpool-general] diagnosing BackendError from pcp_recovery_node
To: pgpool-general@pgfoundry.org
Date: Wed, 05 Oct 2011 15:15:07 -0700
pcp_child.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pcp_child.c b/pcp_child.c
index 26a8023df..0a54f817b 100644
--- a/pcp_child.c
+++ b/pcp_child.c
@@ -87,6 +87,10 @@ static volatile sig_atomic_t pcp_restart_request = 0;
pool_log("pcp child process received restart request"); \
exit(1); \
} \
+ else \
+ { \
+ pool_initialize_private_backend_status(); \
+ } \
} while (0)
void
[parent: bb63f118e01d]