Browse Source

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

instead of the buffer pool mutex.  This is related to Issue #157.
pull/374/head
marko 17 years ago
parent
commit
4d97bedb5c
  1. 5
      include/buf0buf.ic

5
include/buf0buf.ic

@ -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);
}

Loading…
Cancel
Save