Skip to content

Commit a0d3ead

Browse files
committed
Merge 10.2 into 10.3
2 parents 5f60c7c + 37ffdb4 commit a0d3ead

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,12 @@ thd_destructor_proxy(void *)
291291
mysql_cond_init(PSI_NOT_INSTRUMENTED, &thd_destructor_cond, 0);
292292

293293
st_my_thread_var *myvar= _my_thread_var();
294+
myvar->current_mutex = &thd_destructor_mutex;
295+
myvar->current_cond = &thd_destructor_cond;
296+
294297
THD *thd= create_thd();
295298
thd_proc_info(thd, "InnoDB shutdown handler");
296299

297-
myvar->current_mutex = &thd_destructor_mutex;
298-
myvar->current_cond = &thd_destructor_cond;
299300

300301
mysql_mutex_lock(&thd_destructor_mutex);
301302
my_atomic_storeptr_explicit(reinterpret_cast<void**>(&srv_running),

storage/innobase/row/row0mysql.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (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
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -3414,8 +3414,11 @@ row_drop_table_for_mysql(
34143414
calling btr_search_drop_page_hash_index() while we
34153415
hold the InnoDB dictionary lock, we will drop any
34163416
adaptive hash index entries upfront. */
3417+
bool immune = is_temp_name
3418+
|| strstr(table->name.m_name, "/FTS");
3419+
34173420
while (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) {
34213424
err = DB_INTERRUPTED;

0 commit comments

Comments
 (0)