From 920824c24e94efefc6b1ce135499e7d7e5290ae9 Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 23 Jul 2020 11:35:40 +0300 Subject: [PATCH] Backported setting of transcation.on=1 in THD::reset_for_reuse() This is to ensure code in 10.4 and 10.5 is logically identical for this variable --- sql/sql_class.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 7327f270c33..8f6356b15c7 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1640,6 +1640,7 @@ void THD::reset_for_reuse() abort_on_warning= 0; free_connection_done= 0; m_command= COM_CONNECT; + transaction.on= 1; #if defined(ENABLED_PROFILING) profiling.reset(); #endif