From de715c0bb16471365a586348e5f516efed17c97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 15 May 2019 12:50:19 +1000 Subject: [PATCH] Fix stall in changing autocommit on slow backend --- lib/mysql_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index d58423ee1..2c704de24 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -1887,7 +1887,7 @@ int MySQL_Connection::async_send_simple_command(short event, char *stmt, unsigne switch (async_state_machine) { case ASYNC_QUERY_END: processing_multi_statement=false; // no matter if we are processing a multi statement or not, we reached the end - return 0; + //return 0; <= bug. Do not return here, because we need to reach the if (async_state_machine==ASYNC_QUERY_END) few lines below break; case ASYNC_IDLE: set_query(stmt,length);