From d1d472646d578608791dcd33c13ca6b2472e31b2 Mon Sep 17 00:00:00 2001 From: Monty Date: Mon, 4 May 2020 14:20:14 +0300 Subject: Change THD->transaction to a pointer to enable multiple transactions All changes (except one) is of type thd->transaction. -> thd->transaction-> thd->transaction points by default to 'thd->default_transaction' This allows us to 'easily' have multiple active transactions for a THD object, like when reading data from the mysql.proc table --- sql/wsrep_applier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/wsrep_applier.cc') diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index 25a4e22aeb4..4005de22e72 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -191,7 +191,7 @@ int wsrep_apply_events(THD* thd, /* Use the original server id for logging. */ thd->set_server_id(ev->server_id); thd->set_time(); // time the query - thd->transaction.start_time.reset(thd); + thd->transaction->start_time.reset(thd); thd->lex->current_select= 0; if (!ev->when) { -- cgit v1.2.1