pgpool2.git / summary / log / commit / refs
commit 010ab4adbb4893cfab55d4eaa0e3e529032ce176
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Mon Aug 16 01:51:39 2010 +0000
Fix CompletedResponse so that it checks command tag.
This fix is the rest of the previous fix.
pool_proto2.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pool_proto2.c b/pool_proto2.c
index ea2d3ff48..66306f4a1 100644
--- a/pool_proto2.c
+++ b/pool_proto2.c
@@ -275,6 +275,13 @@ POOL_STATUS CompletedResponse(POOL_CONNECTION *frontend,
{
pool_debug("CompletedResponse: message length does not match between master(%d \"%s\",) and %d th server (%d \"%s\",)",
len, string, i, len1, string1);
+
+ /* we except INSERT, because INSERT response has OID */
+ if (strncmp(string1, "INSERT", 6))
+ {
+ free(string1);
+ return POOL_END;
+ }
}
}
/* forward to the frontend */
[parent: 7daac5a1f840]