Skip to content

Commit 5002ce8

Browse files
committed
Bug#30355571 MERGE TWO GUARDS INTERMEDIATE_COMMIT_WITHOUT_ & DISABLE_GTID_STATE_UPDATE
Post push fix: Use the new guard in ndbcluster code Change-Id: I27d687e7eaf596e025f10e2ea2fbc44a88a05019
1 parent 67e4ad7 commit 5002ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/ndb/plugin/ndb_dd_upgrade_table.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#include "sql/sql_table.h" // build_tablename
8282
#include "sql/system_variables.h"
8383
#include "sql/table.h" // Table_check_intact
84-
#include "sql/thd_raii.h" // Disable_autocommit_guard
84+
#include "sql/thd_raii.h" // Implicit_substatement_state_guard
8585
#include "sql/thr_malloc.h"
8686
#include "sql/transaction.h" // trans_commit
8787
#include "sql_string.h"
@@ -887,7 +887,7 @@ bool migrate_table_to_dd(THD *thd, const String_type &schema_name,
887887
return false;
888888
}
889889

890-
Disable_gtid_state_update_guard disabler(thd);
890+
Implicit_substatement_state_guard substatement_guard(thd);
891891

892892
std::unique_ptr<dd::Table> table_def = dd::create_dd_user_table(
893893
thd, *sch_obj, to_table_name, &create_info, alter_info.create_list,

0 commit comments

Comments
 (0)