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:
unknown 2003-06-30 09:47:56 -07:00
parent 80c1bba3a9
commit 637607f006
2 changed files with 4 additions and 3 deletions

View file

@ -980,13 +980,14 @@ int ha_create_table(const char *name, HA_CREATE_INFO *create_info,
void ha_key_cache(void) void ha_key_cache(void)
{ {
if (keybuff_size) 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 ha_resize_key_cache(void)
{ {
(void) resize_key_cache((ulong) keybuff_size); (void) resize_key_cache(&dflt_keycache,(ulong) keybuff_size);
} }

View file

@ -874,7 +874,7 @@ void clean_up(bool print_message)
udf_free(); udf_free();
#endif #endif
(void) ha_panic(HA_PANIC_CLOSE); /* close all tables and logs */ (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 */ end_thr_alarm(1); /* Free allocated memory */
#ifdef USE_RAID #ifdef USE_RAID
end_raid(); end_raid();