pgpool2.git / summary / log / commit / refs
commit c00cdc3d8c1ad52c129cf8be925d030bd8873517
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Wed Jul 21 12:16:20 2010 +0000
Fix hungup when executed regression test.
pool_process_query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index 13f6982db..ca89ae731 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -181,7 +181,7 @@ POOL_STATUS pool_process_query(POOL_CONNECTION *frontend,
* receiving data cache, then issue select(2) to wait for new
* data arrival
*/
- if (is_cache_empty(frontend, backend))
+ if (is_cache_empty(frontend, backend) && !pool_is_query_in_progress())
{
struct timeval timeoutdata;
struct timeval *timeout;
[parent: 0734561271b3]