From 87defea2bb2df0e1315c3ef283cc2c3119974e25 Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 23 Jan 2007 16:12:14 +0000 Subject: [PATCH] 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(). --- buf/buf0buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buf/buf0buf.c b/buf/buf0buf.c index 6433bcdf979..75ce3f9611d 100644 --- a/buf/buf0buf.c +++ b/buf/buf0buf.c @@ -2320,7 +2320,7 @@ buf_page_init_for_read( /* Unfix and unlatch the block. */ mutex_enter(&buf_pool->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); mutex_exit(&buf_pool->mutex); mutex_exit(&block->mutex);