pgpool2.git / summary / log / commit / refs
commit 02bbe4e40fd89b0a307ea7f72d3633d22fe351cc
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Mon Jun 11 03:01:22 2007 +0000
Fix kind mismatch error when load_balance_mode is true.
pool_process_query.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pool_process_query.c b/pool_process_query.c
index d21fd1963..4c38919d8 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -976,6 +976,7 @@ static POOL_STATUS SimpleQuery(POOL_CONNECTION *frontend,
}
else if (REPLICATION && is_select_query(node1, string1) && !is_sequence_query(node1))
{
+ selected_slot = MASTER_NODE_ID;
replication_was_enabled = 1;
REPLICATION = 0;
LOAD_BALANCE_STATUS(MASTER_NODE_ID) = LOAD_SELECTED;
@@ -1084,6 +1085,7 @@ static POOL_STATUS Execute(POOL_CONNECTION *frontend,
else if (REPLICATION && is_select_query((Node *)p_stmt->query, string1) && !is_sequence_query((Node *)p_stmt->query))
{
+ selected_slot = MASTER_NODE_ID;
replication_was_enabled = 1;
REPLICATION = 0;
LOAD_BALANCE_STATUS(MASTER_NODE_ID) = LOAD_SELECTED;
[parent: b7de4e750974]