mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
buf0flu.c:
Add diagnostics to track why ut_a(block->state == BUF_BLOCK_FILE_PAGE) failed in buf_flush_ready_for_replace() for a user innobase/buf/buf0flu.c: Add diagnostics to track why ut_a(block->state == BUF_BLOCK_FILE_PAGE) failed in buf_flush_ready_for_replace() for a user
This commit is contained in:
parent
7e517f7319
commit
f56889321f
1 changed files with 9 additions and 1 deletions
|
@ -115,7 +115,15 @@ buf_flush_ready_for_replace(
|
||||||
#ifdef UNIV_SYNC_DEBUG
|
#ifdef UNIV_SYNC_DEBUG
|
||||||
ut_ad(mutex_own(&(buf_pool->mutex)));
|
ut_ad(mutex_own(&(buf_pool->mutex)));
|
||||||
#endif /* UNIV_SYNC_DEBUG */
|
#endif /* UNIV_SYNC_DEBUG */
|
||||||
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
|
if (block->state != BUF_BLOCK_FILE_PAGE) {
|
||||||
|
ut_print_timestamp(stderr);
|
||||||
|
fprintf(stderr,
|
||||||
|
" InnoDB: Error: buffer block state %lu in the LRU list!\n",
|
||||||
|
(ulong)block->state);
|
||||||
|
ut_print_buf(stderr, (byte*)block, sizeof(buf_block_t));
|
||||||
|
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if ((ut_dulint_cmp(block->oldest_modification, ut_dulint_zero) > 0)
|
if ((ut_dulint_cmp(block->oldest_modification, ut_dulint_zero) > 0)
|
||||||
|| (block->buf_fix_count != 0)
|
|| (block->buf_fix_count != 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue