From 728902eae79542f5ac0e34c12ec631c89d0f0da2 Mon Sep 17 00:00:00 2001 From: marko Date: Thu, 23 Nov 2006 15:12:53 +0000 Subject: [PATCH] branches/zip: buf_block_set_state(): Allow the state transition from BUF_BLOCK_READY_FOR_USE to BUF_BLOCK_NOT_USED. --- include/buf0buf.ic | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/buf0buf.ic b/include/buf0buf.ic index a470a94e019..88361129950 100644 --- a/include/buf0buf.ic +++ b/include/buf0buf.ic @@ -127,14 +127,15 @@ buf_block_set_state( break; case BUF_BLOCK_READY_FOR_USE: ut_a(state == BUF_BLOCK_MEMORY - || state == BUF_BLOCK_FILE_PAGE); + || state == BUF_BLOCK_FILE_PAGE + || state == BUF_BLOCK_NOT_USED); break; case BUF_BLOCK_MEMORY: ut_a(state == BUF_BLOCK_NOT_USED); break; case BUF_BLOCK_FILE_PAGE: ut_a(state == BUF_BLOCK_NOT_USED - || state == BUF_BLOCK_REMOVE_HASH); + || state == BUF_BLOCK_REMOVE_HASH); break; case BUF_BLOCK_REMOVE_HASH: ut_a(state == BUF_BLOCK_MEMORY);