Commit 728902ea authored by marko's avatar marko

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

BUF_BLOCK_READY_FOR_USE to BUF_BLOCK_NOT_USED.
parent 1f6af850
...@@ -127,14 +127,15 @@ buf_block_set_state( ...@@ -127,14 +127,15 @@ buf_block_set_state(
break; break;
case BUF_BLOCK_READY_FOR_USE: case BUF_BLOCK_READY_FOR_USE:
ut_a(state == BUF_BLOCK_MEMORY ut_a(state == BUF_BLOCK_MEMORY
|| state == BUF_BLOCK_FILE_PAGE); || state == BUF_BLOCK_FILE_PAGE
|| state == BUF_BLOCK_NOT_USED);
break; break;
case BUF_BLOCK_MEMORY: case BUF_BLOCK_MEMORY:
ut_a(state == BUF_BLOCK_NOT_USED); ut_a(state == BUF_BLOCK_NOT_USED);
break; break;
case BUF_BLOCK_FILE_PAGE: case BUF_BLOCK_FILE_PAGE:
ut_a(state == BUF_BLOCK_NOT_USED ut_a(state == BUF_BLOCK_NOT_USED
|| state == BUF_BLOCK_REMOVE_HASH); || state == BUF_BLOCK_REMOVE_HASH);
break; break;
case BUF_BLOCK_REMOVE_HASH: case BUF_BLOCK_REMOVE_HASH:
ut_a(state == BUF_BLOCK_MEMORY); ut_a(state == BUF_BLOCK_MEMORY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment