pgpool2.git / summary / log / commit / refs

commit    24ea8483fcd3a2a96096c8742fa15e2bf4822135
Author:   Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date:     Fri Feb 08 10:57:03 2008 +0000

    Fix wrong timeout handling in pool_read2() and pool_read_string().


pool_stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool_stream.c b/pool_stream.c index 5b6f48a14..dd71d6d8e 100644 --- a/pool_stream.c +++ b/pool_stream.c @@ -335,7 +335,7 @@ char *pool_read2(POOL_CONNECTION *cp, int len) buf += consume_size; /* if this is not the master backend, then set timeout */ - notimeout = IS_MASTER_NODE_ID(cp->db_node_id); + notimeout = !IS_MASTER_NODE_ID(cp->db_node_id); while (len > 0) { @@ -655,7 +655,7 @@ char *pool_read_string(POOL_CONNECTION *cp, int *len, int line) } /* if this is not the master backend, then set timeout */ - notimeout = IS_MASTER_NODE_ID(cp->db_node_id); + notimeout = !IS_MASTER_NODE_ID(cp->db_node_id); for (;;) { [parent: f78265b774cf]