mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
More fixes for LOCK TABLE and REPAIR/FLUSH
Changed HA_EXTRA_NORMAL to HA_EXTRA_NOT_USED (more clean) mysql-test/suite/maria/lock.result: More extensive tests of LOCK TABLE with FLUSH and REPAIR mysql-test/suite/maria/lock.test: More extensive tests of LOCK TABLE with FLUSH and REPAIR sql/sql_admin.cc: Fix that REPAIR TABLE ... USE_FRM works with LOCK TABLES sql/sql_base.cc: Ensure that transactions are closed in ARIA when doing flush HA_EXTRA_NORMAL -> HA_EXTRA_NOT_USED Don't call extra many times for a table in close_all_tables_for_name() Added test if table_list->table as this can happen in error situations sql/sql_partition.cc: HA_EXTRA_NORMAL -> HA_EXTRA_NOT_USED sql/sql_reload.cc: Fixed comment sql/sql_table.cc: HA_EXTRA_NORMAL -> HA_EXTRA_NOT_USED sql/sql_trigger.cc: HA_EXTRA_NORMAL -> HA_EXTRA_NOT_USED sql/sql_truncate.cc: HA_EXTRA_FORCE_REOPEN -> HA_EXTRA_PREPARE_FOR_DROP for truncate, as this speeds up truncate by not having to flush the cache to disk.
This commit is contained in:
@ -243,9 +243,9 @@ bool reload_acl_and_cache(THD *thd, unsigned long options,
|
||||
{
|
||||
/*
|
||||
It is not safe to upgrade the metadata lock without GLOBAL IX lock.
|
||||
This can happen with FLUSH TABLES <list> WITH READ LOCK as we in these
|
||||
cases don't take a GLOBAL IX lock in order to be compatible with
|
||||
global read lock.
|
||||
This can happen with FLUSH TABLES <list> WITH READ LOCK as we in
|
||||
these cases don't take a GLOBAL IX lock in order to be compatible
|
||||
with global read lock.
|
||||
*/
|
||||
if (thd->open_tables &&
|
||||
!thd->mdl_context.is_lock_owner(MDL_key::GLOBAL, "", "",
|
||||
|
Reference in New Issue
Block a user