From d5723f93317e460c7e02766f585633b8722beda5 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Asaba Date: Wed, 11 Jul 2007 02:08:01 +0000 Subject: [PATCH] Previous commit does not fix deadlock error in Execute(). --- pool_process_query.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pool_process_query.c b/pool_process_query.c index e7b11fc..d34f59b 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -877,10 +877,11 @@ static POOL_STATUS Execute(POOL_CONNECTION *frontend, */ pool_write(cp, "H", 1); sendlen = htonl(4); - } - if (pool_write_and_flush(cp, &sendlen, sizeof(sendlen)) < 0) - { - return POOL_ERROR; + + if (pool_write_and_flush(cp, &sendlen, sizeof(sendlen)) < 0) + { + return POOL_ERROR; + } } if (!REPLICATION) -- 2.39.5