pgpool2.git / summary / log / commit / refs

commit    e045a737f33e71b3a28eaa9779cdb672756051cd
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Sun Mar 04 03:59:40 2012 +0000

    Fix pool_setall_node_to_be_sent() to use private_backend_status.  It
    is possible that while processing, the node is not usable any more.


pool_query_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool_query_context.c b/pool_query_context.c index a9f393b81..c762c9da9 100644 --- a/pool_query_context.c +++ b/pool_query_context.c @@ -180,8 +180,8 @@ void pool_setall_node_to_be_sent(POOL_QUERY_CONTEXT *query_context) for (i=0;i<NUM_BACKENDS;i++) { - if ((BACKEND_INFO(i)).backend_status == CON_UP || - (BACKEND_INFO((i)).backend_status == CON_CONNECT_WAIT)) + if (private_backend_status[i] == CON_UP || + (private_backend_status[i] == CON_CONNECT_WAIT)) query_context->where_to_send[i] = true; } return; [parent: 6ca2a3b7f7cd]