From 0b2009bcce932bb5ff57e0dbe50ac8ebb6d454c9 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Mon, 15 Apr 2013 14:45:49 +0300 Subject: [PATCH] remote_wait_for_cancel: wait only C_QUERY_READ connections. Previous check was too broad and left plproxy hanging. Reported-By: Tarvi Pillessaar --- src/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execute.c b/src/execute.c index bfd4b0f..00d5c91 100644 --- a/src/execute.c +++ b/src/execute.c @@ -816,7 +816,7 @@ remote_wait_for_cancel(ProxyFunction *func) if (!conn->run_tag) continue; - if (conn->cur->state != C_DONE) + if (conn->cur->state == C_QUERY_READ) pending++; check_timeouts(func, cluster, conn, now.tv_sec); } -- 2.39.5