From 61bc777884424c38f7ce86aa4f923eda36ce8cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 11 Feb 2019 00:26:40 +1100 Subject: [PATCH] Multiplexing erroneously disabled #1897 --- lib/MySQL_Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 0fd9f3bca9..e721f07f72 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -2699,7 +2699,7 @@ int MySQL_Session::handler() { if (myconn->mysql->affected_rows) { if (myconn->mysql->affected_rows != ULLONG_MAX) { last_HG_affected_rows = current_hostgroup; - if (mysql_thread___auto_increment_delay_multiplex) { + if (mysql_thread___auto_increment_delay_multiplex && myconn->mysql->insert_id) { myconn->auto_increment_delay_token = mysql_thread___auto_increment_delay_multiplex + 1; } }