Commit 6473df1f authored by marko's avatar marko

branches/zip: buf_page_init_for_read(): Decrement, do not reset

block->page.buf_fix_count.  This mistake was made in r1255.
When access to the block is requested by some other thread,
buf_fix_count can be incremented during the execution of
buf_zip_decompress().
parent 46e544a0
...@@ -2320,7 +2320,7 @@ buf_page_init_for_read( ...@@ -2320,7 +2320,7 @@ buf_page_init_for_read(
/* Unfix and unlatch the block. */ /* Unfix and unlatch the block. */
mutex_enter(&buf_pool->mutex); mutex_enter(&buf_pool->mutex);
mutex_enter(&block->mutex); mutex_enter(&block->mutex);
block->page.buf_fix_count = 0; block->page.buf_fix_count--;
buf_block_set_io_fix(block, BUF_IO_NONE); buf_block_set_io_fix(block, BUF_IO_NONE);
mutex_exit(&buf_pool->mutex); mutex_exit(&buf_pool->mutex);
mutex_exit(&block->mutex); mutex_exit(&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