summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 4f1777c152c..654d7ad718d 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -1050,8 +1050,8 @@ THD::~THD()
if (!cleanup_done)
cleanup();
- mdl_context_destroy(&mdl_context);
- mdl_context_destroy(&handler_mdl_context);
+ mdl_context.destroy();
+ handler_mdl_context.destroy();
ha_close_connection(this);
plugin_thdvar_cleanup(this);
@@ -3033,8 +3033,8 @@ void THD::restore_backup_open_tables_state(Open_tables_state *backup)
lock == 0 &&
locked_tables_mode == LTM_NONE &&
m_reprepare_observer == NULL);
- mdl_context_destroy(&mdl_context);
- mdl_context_destroy(&handler_mdl_context);
+ mdl_context.destroy();
+ handler_mdl_context.destroy();
set_open_tables_state(backup);
DBUG_VOID_RETURN;