Commit c3d8b9b0 authored by marko's avatar marko

branches/zip: buf_LRU_block_remove_hashed_page(): Add some debug assertions.

parent a10dbcf5
...@@ -1806,6 +1806,9 @@ buf_LRU_block_remove_hashed_page( ...@@ -1806,6 +1806,9 @@ buf_LRU_block_remove_hashed_page(
void* data = bpage->zip.data; void* data = bpage->zip.data;
bpage->zip.data = NULL; bpage->zip.data = NULL;
ut_ad(!bpage->in_free_list);
ut_ad(!bpage->in_flush_list);
ut_ad(!bpage->in_LRU_list);
mutex_exit(&((buf_block_t*) bpage)->mutex); mutex_exit(&((buf_block_t*) bpage)->mutex);
buf_pool_mutex_exit_forbid(); buf_pool_mutex_exit_forbid();
buf_buddy_free(data, page_zip_get_size(&bpage->zip)); buf_buddy_free(data, page_zip_get_size(&bpage->zip));
......
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