pgpool2.git / summary / log / commit / refs

commit    6f3d66c19a10dcb0a6e6dfdf356dce3110a08d89
Author:   Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date:     Fri Aug 20 01:57:46 2010 +0000

    Fix SimpleQuery so that it checks backend status when using V2 protocol.


pool_proto_modules.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool_proto_modules.c b/pool_proto_modules.c index 0e286c132..33ddecbb7 100644 --- a/pool_proto_modules.c +++ b/pool_proto_modules.c @@ -337,7 +337,8 @@ POOL_STATUS SimpleQuery(POOL_CONNECTION *frontend, for (i=0;i<NUM_BACKENDS;i++) { - TSTATE(backend, i) = 'T'; + if(VALID_BACKEND(i)) + TSTATE(backend, i) = 'T'; } } [parent: 1cb4d4d75a35]