pgpool2.git / summary / log / commit / refs

commit    19c8d24f15027d2a2f9930a32e986beef91c182e
Author:   Muhammad Usama <m.usama@gmail.com>
Date:     Mon Dec 01 14:42:54 2014 +0000

    Fixing [pgpool-hackers: 694] pgpool-II 3.4 can't cancel query
    pool_write_noerror() returns 0 when successful, But pool_write_and_flush_noerror()
    function was assuming otherwise. Correcting the wrong IF statement in the function.


src/utils/pool_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pool_stream.c b/src/utils/pool_stream.c index fc4245f11..f4cbcc009 100644 --- a/src/utils/pool_stream.c +++ b/src/utils/pool_stream.c @@ -658,7 +658,7 @@ int pool_write_and_flush_noerror(POOL_CONNECTION *cp, void *buf, int len) { int ret; ret = pool_write_noerror(cp,buf,len); - if(ret != 0) + if(ret == 0) return pool_flush_noerror(cp); return ret; } [parent: 0920faac9dae]