mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Fixed bug lp:814054 'Assertion `block->hash_link == hash_link && hash_link->block == block' in ma_pagecache.c:2275 with Aria'
- Replaced old DBUG_ASSERT with a new correct one + a comment. storage/maria/ma_pagecache.c: Replaced old DBUG_ASSERT with a new correct one + a comment.
This commit is contained in:
parent
397fc34f44
commit
b5ef802f8e
1 changed files with 8 additions and 2 deletions
|
@ -2271,8 +2271,14 @@ restart:
|
|||
("block->hash_link: %p hash_link: %p "
|
||||
"block->status: %u", block->hash_link,
|
||||
hash_link, block->status ));
|
||||
KEYCACHE_DBUG_ASSERT(block->hash_link == hash_link &&
|
||||
hash_link->block == block);
|
||||
/*
|
||||
block->hash_link != hash_link can only happen when
|
||||
the block is in PCBLOCK_IN_SWITCH above (is flushed out
|
||||
to be replaced by another block). The SWITCH code will change
|
||||
block->hash_link to point to hash_link.
|
||||
*/
|
||||
KEYCACHE_DBUG_ASSERT(block->hash_link == hash_link ||
|
||||
block->status & PCBLOCK_IN_SWITCH);
|
||||
page_status= (((block->hash_link == hash_link) &&
|
||||
(block->status & PCBLOCK_READ)) ?
|
||||
PAGE_READ : PAGE_WAIT_TO_BE_READ);
|
||||
|
|
Loading…
Reference in a new issue