mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
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:
parent
1f6af85001
commit
728902eae7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue