pgpool2.git / summary / log / commit / refs
commit ca6d564c033e081e07a4a1416cc2b88fe30c85a0
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Mon Mar 10 04:37:19 2008 +0000
*** empty log message ***
pool_process_query.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/pool_process_query.c b/pool_process_query.c
index 80df885e5..b76a0d633 100644
--- a/pool_process_query.c
+++ b/pool_process_query.c
@@ -314,6 +314,8 @@ POOL_STATUS pool_process_query(POOL_CONNECTION *frontend,
FD_ZERO(&writemask);
FD_ZERO(&exceptmask);
+ num_fds = 0;
+
/*
* Do not read a message from frontend while backends process a query.
*/
@@ -324,8 +326,6 @@ POOL_STATUS pool_process_query(POOL_CONNECTION *frontend,
num_fds = Max(frontend->fd + 1, num_fds);
}
- num_fds = 0;
-
/*
* Do not use VALID_BACKEND macro.
* Because if in_load_balance == 1, VALID_BACKEND macro may return 0.
@@ -346,10 +346,6 @@ POOL_STATUS pool_process_query(POOL_CONNECTION *frontend,
}
}
- /*
- pool_debug("pool_process_query: num_fds: %d", num_fds);
- */
-
if (pool_config->client_idle_limit == 0)
fds = select(num_fds, &readmask, &writemask, &exceptmask, NULL);
else
[parent: ea7b2a8ba3b1]