Blame SOURCES/Emit-debug-on-queue-errors.patch

472fdf
From f1f89ef85b65b95f568d46fea85c7e7834e3a101 Mon Sep 17 00:00:00 2001
472fdf
From: Simo Sorce <simo@redhat.com>
472fdf
Date: Thu, 26 Oct 2017 11:47:54 -0400
472fdf
Subject: [PATCH] Emit debug on queue errors
472fdf
472fdf
Signed-off-by: Simo Sorce <simo@redhat.com>
472fdf
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
472fdf
Merges: #218
472fdf
(cherry picked from commit af666affbd4735ba437e3d89d9e22984a556ed16)
472fdf
---
472fdf
 proxy/src/gp_workers.c | 2 ++
472fdf
 1 file changed, 2 insertions(+)
472fdf
472fdf
diff --git a/proxy/src/gp_workers.c b/proxy/src/gp_workers.c
472fdf
index 2a33c21..18f38f6 100644
472fdf
--- a/proxy/src/gp_workers.c
472fdf
+++ b/proxy/src/gp_workers.c
472fdf
@@ -314,6 +314,8 @@ static void gp_handle_reply(verto_ctx *vctx, verto_ev *ev)
472fdf
         case GP_QUERY_IN:
472fdf
             /* ?! fallback and kill client conn */
472fdf
         case GP_QUERY_ERR:
472fdf
+            GPDEBUGN(3, "[status] Handling query error, terminating CID %d.\n",
472fdf
+                     gp_conn_get_cid(q->conn));
472fdf
             gp_conn_free(q->conn);
472fdf
             gp_query_free(q, true);
472fdf
             break;