Commit b59d325e authored by marko's avatar marko

branches/zip: buf_LRU_invalidate_tablespace(), buf_LRU_free_block():

Add comments and assertions that buf_LRU_block_remove_hashed_page()
will release block_mutex when it returns BUF_BLOCK_ZIP_FREE.
parent 5dd0a711
...@@ -377,6 +377,12 @@ scan_again: ...@@ -377,6 +377,12 @@ scan_again:
buf_LRU_block_free_hashed_page((buf_block_t*) buf_LRU_block_free_hashed_page((buf_block_t*)
bpage); bpage);
} else { } else {
/* The block_mutex should have been
released by buf_LRU_block_remove_hashed_page()
when it returns BUF_BLOCK_ZIP_FREE. */
ut_ad(block_mutex == &buf_pool_zip_mutex);
ut_ad(!mutex_own(block_mutex));
/* The compressed block descriptor /* The compressed block descriptor
(bpage) has been deallocated and (bpage) has been deallocated and
block_mutex released. Also, block_mutex released. Also,
...@@ -1541,6 +1547,10 @@ alloc: ...@@ -1541,6 +1547,10 @@ alloc:
buf_LRU_block_free_hashed_page((buf_block_t*) bpage); buf_LRU_block_free_hashed_page((buf_block_t*) bpage);
} else { } else {
/* The block_mutex should have been released by
buf_LRU_block_remove_hashed_page() when it returns
BUF_BLOCK_ZIP_FREE. */
ut_ad(block_mutex == &buf_pool_zip_mutex);
mutex_enter(block_mutex); mutex_enter(block_mutex);
} }
......
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