summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2013-11-05 22:37:56 +0000
committerMarko Kreen2013-11-05 22:37:56 +0000
commitd70368314479b8610a512628e982665ea0d44260 (patch)
treef2760439c114735b198a0e818269bdc6e9642c3f
parent9aaf52a39acb111fe16f20da89a30abd015cc85d (diff)
remote_wait_for_cancel: avoid unnecessary warningHEADmaster
If the remote server cannot be connected and query is canceled, don't show random warning about "Unfinished connection". Patch by Fazal Majid
-rw-r--r--src/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c
index f0f1cc1..df7807d 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -831,7 +831,7 @@ remote_wait_for_cancel(ProxyFunction *func)
if (!conn->run_tag)
continue;
- if (conn->cur->state != C_DONE)
+ if (conn->cur->state != C_DONE && conn->cur->state != C_NONE)
plproxy_error(func, "Unfinished connection: %d", conn->cur->state);
if (conn->res != NULL)
{