Commit 5b08c732 authored by marko's avatar marko

branches/zip: buf_page_get_newest_modification(): Use the block mutex

instead of the buffer pool mutex.  This is related to Issue #157.
parent 67d12c88
......@@ -805,8 +805,9 @@ buf_page_get_newest_modification(
page frame */
{
ib_uint64_t lsn;
mutex_t* block_mutex = buf_page_get_mutex(bpage);
buf_pool_mutex_enter();
mutex_enter(block_mutex);
if (buf_page_in_file(bpage)) {
lsn = bpage->newest_modification;
......@@ -814,7 +815,7 @@ buf_page_get_newest_modification(
lsn = 0;
}
buf_pool_mutex_exit();
mutex_exit(block_mutex);
return(lsn);
}
......
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