pgpool2.git / summary / log / commit / refs
commit ce378e0fc2e419bf75c39b7a154da96bfdc4bd63
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Tue Mar 11 02:49:03 2008 +0000
Fixed hang up if a node was executed immediate shutdown.
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 b76a0d633..0b9469763 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -5460,7 +5460,8 @@ static int detect_error(POOL_CONNECTION *backend, char *error_code, int major, b
memcpy(p, &kind, sizeof(kind));
p += sizeof(kind);
- if (kind == 'E') /* ErrorResponseMessage? */
+ /* ErrorResponse or NoticeResponse message? */
+ if (kind == 'E' || kind == 'N')
{
/* read actual query */
if (major == PROTO_MAJOR_V3)
[parent: 29481a388d94]