mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
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().
This commit is contained in:
parent
f0154795ad
commit
87defea2bb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue