Commit 4d97bedb 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 d1cb7062
...@@ -805,8 +805,9 @@ buf_page_get_newest_modification( ...@@ -805,8 +805,9 @@ buf_page_get_newest_modification(
page frame */ page frame */
{ {
ib_uint64_t lsn; 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)) { if (buf_page_in_file(bpage)) {
lsn = bpage->newest_modification; lsn = bpage->newest_modification;
...@@ -814,7 +815,7 @@ buf_page_get_newest_modification( ...@@ -814,7 +815,7 @@ buf_page_get_newest_modification(
lsn = 0; lsn = 0;
} }
buf_pool_mutex_exit(); mutex_exit(block_mutex);
return(lsn); 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