branches/zip: buf_block_set_state(): Allow the state transition from

BUF_BLOCK_READY_FOR_USE to BUF_BLOCK_NOT_USED.
This commit is contained in:
marko 2006-11-23 15:12:53 +00:00
parent 1f6af85001
commit 728902eae7

View file

@ -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);