Commit 9a446b97 authored by igor@rurik.mysql.com's avatar igor@rurik.mysql.com

mysqld.cc, handler.cc:

  Added multiple key cache
parent 10a8adc1
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment