From 74c55e5c82f38fbc1af9f2a0d7d81e9ae676a044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 16 Jan 2017 10:49:25 +0200 Subject: [PATCH] Remove qc_is_real_query use from mqfilter The use of this function is not necessary as it is only done as an optimization. --- server/modules/filter/mqfilter/mqfilter.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/server/modules/filter/mqfilter/mqfilter.c b/server/modules/filter/mqfilter/mqfilter.c index 10d8e885c..ec2ba0656 100644 --- a/server/modules/filter/mqfilter/mqfilter.c +++ b/server/modules/filter/mqfilter/mqfilter.c @@ -960,14 +960,6 @@ routeQuery(MXS_FILTER *instance, MXS_FILTER_SESSION *session, GWBUF *queue) { success = true; - if (!my_instance->log_all) - { - if (!qc_is_real_query(queue)) - { - goto send_downstream; - } - } - if (my_instance->trgtype == TRG_ALL) { MXS_INFO("Trigger is TRG_ALL"); @@ -1229,7 +1221,7 @@ routeQuery(MXS_FILTER *instance, MXS_FILTER_SESSION *session, GWBUF *queue) /** Pass the query downstream */ } -send_downstream: + return my_session->down.routeQuery(my_session->down.instance, my_session->down.session, queue); }