From 3241290f8cfe713646389b1cedef4ab1384e8f55 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Tue, 1 May 2012 13:08:48 +0900 Subject: [PATCH] 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 c964160bf..bb4e31357 100644 --- a/pool_query_context.c +++ b/pool_query_context.c @@ -604,7 +604,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. @@ -614,7 +613,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 -- 2.39.5