summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-10-31 12:08:28 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-10-31 12:09:08 +0200
commita5cbdd63bc2ff25a52e2e10f84b6aaf59837dbae (patch)
treeba46d9e3435c7c1d89251d953a0f796a46f53f1c /storage/innobase
parentb92ff45089eb21ede352f5fd18dc69baa4bcb13f (diff)
downloadmariadb-git-a5cbdd63bc2ff25a52e2e10f84b6aaf59837dbae.tar.gz
Fix innodb.table_flags,debug
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/row/row0mysql.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index 7a737cd10e8..bb815de3138 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -4049,7 +4049,9 @@ row_drop_table_for_mysql(
dict_stats_recalc_pool_del(table);
dict_stats_defrag_pool_del(table, NULL);
- btr_defragment_remove_table(table);
+ if (btr_defragment_thread_active) {
+ btr_defragment_remove_table(table);
+ }
/* Remove stats for this table and all of its indexes from the
persistent storage if it exists and if there are stats for this