pgpool2.git / summary / log / commit / refs
commit faee2242fd686170c8ec6bb943b06a9bf569b0c8
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Tue May 29 01:58:10 2007 +0000
Fix handling protocol version 2.
pool_process_query.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index ef641893d..681e9bbff 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -1735,7 +1735,8 @@ static POOL_STATUS BinaryRow(POOL_CONNECTION *frontend,
buf = NULL;
/* forward to frontend */
- pool_write(frontend, &size, sizeof(int));
+ if (IS_MASTER_NODE_ID(j))
+ pool_write(frontend, &size, sizeof(int));
size = ntohl(size) - 4;
/* read and send actual data only when size > 0 */
[parent: d93065b1c858]