File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -291,11 +291,12 @@ thd_destructor_proxy(void *)
291291mysql_cond_init(PSI_NOT_INSTRUMENTED, &thd_destructor_cond, 0);
292292
293293st_my_thread_var *myvar= _my_thread_var();
294+ myvar->current_mutex = &thd_destructor_mutex;
295+ myvar->current_cond = &thd_destructor_cond;
296+
294297THD *thd= create_thd();
295298thd_proc_info(thd, "InnoDB shutdown handler");
296299
297- myvar->current_mutex = &thd_destructor_mutex;
298- myvar->current_cond = &thd_destructor_cond;
299300
300301mysql_mutex_lock(&thd_destructor_mutex);
301302my_atomic_storeptr_explicit(reinterpret_cast<void**>(&srv_running),
Original file line number Diff line number Diff line change 11/* ****************************************************************************
22
33Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
4- Copyright (c) 2015, 2018 , MariaDB Corporation.
4+ Copyright (c) 2015, 2019 , MariaDB Corporation.
55
66This program is free software; you can redistribute it and/or modify it under
77the terms of the GNU General Public License as published by the Free Software
@@ -3414,8 +3414,11 @@ row_drop_table_for_mysql(
34143414calling btr_search_drop_page_hash_index() while we
34153415hold the InnoDB dictionary lock, we will drop any
34163416adaptive hash index entries upfront. */
3417+ bool immune = is_temp_name
3418+ || strstr (table->name .m_name , " /FTS" );
3419+
34173420while (buf_LRU_drop_page_hash_for_tablespace (table)) {
3418- if ((!is_temp_name && trx_is_interrupted (trx))
3421+ if ((!immune && trx_is_interrupted (trx))
34193422 || srv_shutdown_state
34203423 != SRV_SHUTDOWN_NONE) {
34213424err = DB_INTERRUPTED;
You can’t perform that action at this time.
0 commit comments