From 6129f588a14e8bafb58d62f629658989e03b318f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 15 Sep 2020 10:47:16 +0300 Subject: [PATCH] Don't parse COM_STMT_EXECUTE packets The function information is only available for COM_QUERY packets. --- server/core/queryclassifier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/queryclassifier.cc b/server/core/queryclassifier.cc index 879ea5894..3a606ce36 100644 --- a/server/core/queryclassifier.cc +++ b/server/core/queryclassifier.cc @@ -1107,7 +1107,7 @@ QueryClassifier::RouteInfo QueryClassifier::update_route_info( process_routing_hints(pBuffer->hint, &route_target); - if (route_target == TARGET_SLAVE) + if (route_target == TARGET_SLAVE && command == MXS_COM_QUERY) { const QC_FUNCTION_INFO* infos = nullptr; size_t n_infos = 0;