Browse Source
branches/zip: When shrinking the buffer pool, disable and purge the adaptive
branches/zip: When shrinking the buffer pool, disable and purge the adaptive
hash index, because it might occupy the chunk we would like to free. TODO: In btr_search_check_free_space_in_heap(), release the block if btr_search_latch is not immediately available. buf_pool_shrink(): Split from buf_pool_resize(). btr_search_disabled: New variable, similar to srv_use_adaptive_hash_indexes that was removed earlier. btr_search_disable(): New function: disable and purge the adaptive hash index. btr_search_enable(): New function: enable the adaptive hash index. ha_clear(): New function: Empty a hash table and free the memory heaps.pull/73/head
6 changed files with 235 additions and 122 deletions
-
4btr/btr0cur.c
-
28btr/btr0sea.c
-
77buf/buf0buf.c
-
30ha/ha0ha.c
-
17include/btr0sea.h
-
9include/ha0ha.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue