pgpool2.git / summary / log / commit / refs

commit    37db935d9775871ac9c096ae490746e8f2ff61be
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Mon Jul 26 09:52:38 2010 +0000

    Fix reset_backend. Check if backend is valid.


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 3e421b8e4..f3248f97a 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -1854,7 +1854,7 @@ static int reset_backend(POOL_CONNECTION_POOL *backend, int qcnt) for (i=0;i<NUM_BACKENDS;i++) { - if (TSTATE(backend, i) != 'I') + if (VALID_BACKEND(i) && TSTATE(backend, i) != 'I') need_to_abort = true; } [parent: 78ca58c3b695]