From cce8ff15038f53f0289e53f7fecf4bfff165fc06 Mon Sep 17 00:00:00 2001 From: marko <> Date: Mon, 4 Dec 2006 13:12:07 +0000 Subject: [PATCH] branches/zip: buf_LRU_free_block(): Note that buf_LRU_block_remove_hashed_page() changes the state of the block. This error was introduced in r1090. --- buf/buf0lru.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buf/buf0lru.c b/buf/buf0lru.c index 65c60720ef9..ca5e711659c 100644 --- a/buf/buf0lru.c +++ b/buf/buf0lru.c @@ -231,7 +231,9 @@ buf_LRU_free_block( buf_LRU_block_remove_hashed_page(bpage); switch (buf_page_get_state(bpage)) { - case BUF_BLOCK_FILE_PAGE: + case BUF_BLOCK_REMOVE_HASH: + /* The state was changed from BUF_BLOCK_FILE_PAGE + in buf_LRU_block_remove_hashed_page(bpage). */ mutex_exit(&(buf_pool->mutex)); mutex_exit(block_mutex);