mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
merged bug#12361113.
Also added tests for partitions key caches.
This commit is contained in:
commit
7e63c8ac0d
6 changed files with 95 additions and 0 deletions
|
|
@ -911,6 +911,11 @@ bool mysql_assign_to_keycache(THD* thd, TABLE_LIST* tables,
|
|||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
mysql_mutex_unlock(&LOCK_global_system_variables);
|
||||
if (!key_cache->key_cache_inited)
|
||||
{
|
||||
my_error(ER_UNKNOWN_KEY_CACHE, MYF(0), key_cache_name->str);
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
check_opt.key_cache= key_cache;
|
||||
DBUG_RETURN(mysql_admin_table(thd, tables, &check_opt,
|
||||
"assign_to_keycache", TL_READ_NO_INSERT, 0, 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue