From f4f0b2892e00c637be9b058e2a575824749b29d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 10 Jan 2016 01:02:07 +0000 Subject: [PATCH] Disable multiplexing for connections to Admin #466 --- lib/MySQL_Session.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 894124fa9..92cd43396 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -1258,6 +1258,11 @@ handler_again: MySQL_Data_Stream *myds=mybe->server_myds; MySQL_Connection *myconn=myds->myconn; int rc; + if (default_hostgroup<0) { + // we are connected to a Admin module backend + // we pretend to set a user variable to disable multiplexing + myconn->set_status_user_variable(true); + } enum session_status st=status; if (mybe->server_myds->myconn->async_state_machine==ASYNC_IDLE) { st=previous_status.top();