From 0def85ee4a6485fc41146d94f47eda1d0780e612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 7 Apr 2017 22:02:10 +0000 Subject: [PATCH] Fix crash on mirror of commit --- lib/MySQL_Session.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index d228a2a13..3ae824bd7 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -1801,9 +1801,13 @@ __get_pkts_from_client: } rc_break=handler_special_queries(&pkt); if (rc_break==true) { - // track also special queries - RequestEnd(NULL); - break; + if (mirror==false) { + // track also special queries + RequestEnd(NULL); + break; + } else { + return -1; + } } { timespec begint;