From: Marko Kreen Date: Wed, 17 Dec 2008 21:21:11 +0000 (+0000) Subject: Clear ->tuning bit on connection close. X-Git-Tag: plproxy_2_0_8rc1~4 X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpgdulink%28?a=commitdiff_plain;h=c3b4d5f526472ffb778c8c834c2429c8d2c6a08d;p=plproxy.git Clear ->tuning bit on connection close. If tuning query fails, the bit can stay set, thus creating always-failing connection slot. Report and analyze by Jonah Harris. --- diff --git a/src/execute.c b/src/execute.c index 385677a..3e937ff 100644 --- a/src/execute.c +++ b/src/execute.c @@ -281,6 +281,7 @@ prepare_conn(ProxyFunction *func, ProxyConnection *conn) PQfinish(conn->db); conn->db = NULL; conn->state = C_NONE; + conn->tuning = 0; case C_NONE: break; }