pgpool2.git / summary / log / commit / refs
commit 6465b4b9cd73b448fa9c769233022e15f5381afb
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Tue May 01 22:52:31 2012 +0000
Fix pool_send_and_wait() to send or not to send commit/abort depending
on the transaction state on each node. It is possible that only
primary is in an explicit transaction but standby is not in it if
multi statement query has been sent.
Per bug report [pgpool-general-jp: 1049].
pool_query_context.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/pool_query_context.c b/pool_query_context.c
index ea83e66fc..8a1fd19ab 100644
--- a/pool_query_context.c
+++ b/pool_query_context.c
@@ -607,7 +607,6 @@ POOL_STATUS pool_send_and_wait(POOL_QUERY_CONTEXT *query_context,
else if (send_type > 0 && i != node_id)
continue;
-#ifdef NOT_USED
/*
* If in master/slave mode, we do not send COMMIT/ABORT to
* slaves/standbys if it's in I(idle) state.
@@ -617,7 +616,6 @@ POOL_STATUS pool_send_and_wait(POOL_QUERY_CONTEXT *query_context,
pool_unset_node_to_be_sent(query_context, i);
continue;
}
-#endif
/*
* If in reset context, we send COMMIT/ABORT to nodes those
[parent: 99f51f805e75]