pgpool2.git / summary / log / commit / refs
commit cded045c53ccce887921d72e0cf18ad20b7ddd3d
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Thu Feb 14 05:48:54 2008 +0000
Add comment.
main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/main.c b/main.c
index 786cf4b98..a321cf9e3 100644
--- a/main.c
+++ b/main.c
@@ -1045,6 +1045,12 @@ static int get_next_master_node(void)
int i;
for (i=0;i<pool_config->backend_desc->num_backends;i++)
{
+ /*
+ * Do not use VALID_BACKEND macro in raw mode.
+ * VALID_BACKEND return true only if the argument is master
+ * node id. In other words, standby nodes are false. So need
+ * to check backend status without VALID_BACKEND.
+ */
if (RAW_MODE)
{
if (BACKEND_INFO(i).backend_status == CON_CONNECT_WAIT)
[parent: f8fb6f1e596f]