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,7 +127,8 @@ buf_block_set_state( ...@@ -127,7 +127,8 @@ 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);
......
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