diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-09-09 11:38:14 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-09-09 11:38:14 +0300 |
commit | 5822d31696c65000b051a58fb5731ab05bcd4574 (patch) | |
tree | 6f3d80babdacdd853cfcd2619983918d98cae10d | |
parent | 4c0d391c92bcf2e1c6c0e970aa698af9b4740b04 (diff) | |
parent | 99e36a7157e9ea4506a8003ce6ec7a6df116849e (diff) | |
download | mariadb-git-5822d31696c65000b051a58fb5731ab05bcd4574.tar.gz |
Follow-up to MDEV-13407: Remove fil_wait_crypt_bg_threads()
-rw-r--r-- | storage/innobase/row/row0mysql.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc index a1f5743007a..fa2316eee31 100644 --- a/storage/innobase/row/row0mysql.cc +++ b/storage/innobase/row/row0mysql.cc @@ -3312,36 +3312,6 @@ run_again: return(err); } -static -void -fil_wait_crypt_bg_threads( - dict_table_t* table) -{ - time_t start = time(0); - time_t last = start; - - while (table->get_ref_count()> 0) { - dict_mutex_exit_for_mysql(); - os_thread_sleep(20000); - dict_mutex_enter_for_mysql(); - time_t now = time(0); - - if (now >= last + 30) { - ib::warn() - << "Waited " << now - start - << " seconds for ref-count on table " - << table->name; - last = now; - } - if (now >= start + 300) { - ib::warn() - << "After " << now - start - << " seconds, gave up waiting " - << "for ref-count on table " << table->name; - break; - } - } -} /** Drop ancillary FTS tables as part of dropping a table. @param[in,out] table Table cache entry @param[in,out] trx Transaction handle @@ -3685,9 +3655,6 @@ defer: shouldn't have to. There should never be record locks on a table that is going to be dropped. */ - /* Wait on background threads to stop using table */ - fil_wait_crypt_bg_threads(table); - if (table->get_ref_count() > 0 || table->n_rec_locks > 0 || lock_table_has_locks(table)) { goto defer; |