mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
mysqld.cc, handler.cc:
Added multiple key cache sql/handler.cc: Added multiple key cache sql/mysqld.cc: Added multiple key cache
This commit is contained in:
parent
80c1bba3a9
commit
637607f006
2 changed files with 4 additions and 3 deletions
|
@ -980,13 +980,14 @@ int ha_create_table(const char *name, HA_CREATE_INFO *create_info,
|
|||
void ha_key_cache(void)
|
||||
{
|
||||
if (keybuff_size)
|
||||
(void) init_key_cache((ulong) keybuff_size);
|
||||
(void) init_key_cache(&dflt_keycache,dflt_key_block_size,
|
||||
(ulong) keybuff_size);
|
||||
}
|
||||
|
||||
|
||||
void ha_resize_key_cache(void)
|
||||
{
|
||||
(void) resize_key_cache((ulong) keybuff_size);
|
||||
(void) resize_key_cache(&dflt_keycache,(ulong) keybuff_size);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -874,7 +874,7 @@ void clean_up(bool print_message)
|
|||
udf_free();
|
||||
#endif
|
||||
(void) ha_panic(HA_PANIC_CLOSE); /* close all tables and logs */
|
||||
end_key_cache();
|
||||
end_key_cache(&dflt_keycache,1);
|
||||
end_thr_alarm(1); /* Free allocated memory */
|
||||
#ifdef USE_RAID
|
||||
end_raid();
|
||||
|
|
Loading…
Reference in a new issue