From f0ca552dec050719a970bddffa4be385b5feb52e Mon Sep 17 00:00:00 2001 From: solid-yang Date: Wed, 28 Feb 2024 17:35:36 +0800 Subject: [PATCH] do not reload acl caches in release_tse_mdl_thd_by_cantian_id --- storage/tianchi/ctc_meta_data.cc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/storage/tianchi/ctc_meta_data.cc b/storage/tianchi/ctc_meta_data.cc index d8cc8cd..0cc376d 100644 --- a/storage/tianchi/ctc_meta_data.cc +++ b/storage/tianchi/ctc_meta_data.cc @@ -123,26 +123,7 @@ static void release_tse_mdl_thd_by_key(uint64_t mdl_thd_key) { g_tse_mdl_thd_map.erase(mdl_thd_key); } -static void ctc_reload_acl_caches() { - THD *reload_acl_thd = new (std::nothrow) THD; - my_thread_init(); - reload_acl_thd->set_new_thread_id(); - reload_acl_thd->thread_stack = (char *)&reload_acl_thd; - reload_acl_thd->store_globals(); - reload_acl_thd->set_query("tse_mdl_thd_notify", 18); - - reload_acl_caches(reload_acl_thd, false); - tse_log_system("[TSE_RELOAD_ACL]:reload acl caches thd_id:%u", reload_acl_thd->thread_id()); - - reload_acl_thd->release_resources(); - delete reload_acl_thd; - - my_thread_end(); -} - static void release_tse_mdl_thd_by_cantian_id(uint16_t cantian_inst_id) { - ctc_reload_acl_caches(); - lock_guard lock(m_tse_mdl_thd_mutex); for (auto iter = g_tse_mdl_thd_map.begin(); iter != g_tse_mdl_thd_map.end(); ) { if (tse_get_cantian_id_from_conn_key(iter->first) == cantian_inst_id) { -- Gitee