mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
row0sel.c, page0page.ic:
Add still more diagnostic code to track buffer pool corruption in one AMD64/Linux computer
This commit is contained in:
parent
2cc27b4c11
commit
fe784f4962
2 changed files with 13 additions and 2 deletions
|
@ -483,7 +483,12 @@ page_rec_get_next(
|
|||
fprintf(stderr,
|
||||
"InnoDB: Next record offset is nonsensical %lu in record at offset %lu\n",
|
||||
(ulong)offs, (ulong)(rec - page));
|
||||
|
||||
fprintf(stderr,
|
||||
"\nInnoDB: rec address %lx, first buffer frame %lx\n"
|
||||
"InnoDB: buffer pool high end %lx, buf fix count %lu\n",
|
||||
(ulong)rec, (ulong)buf_pool->frame_zero,
|
||||
(ulong)buf_pool->high_end,
|
||||
(ulong)buf_block_align(rec)->buf_fix_count);
|
||||
buf_page_print(page);
|
||||
|
||||
ut_a(0);
|
||||
|
|
|
@ -3090,7 +3090,13 @@ rec_loop:
|
|||
ut_print_timestamp(stderr);
|
||||
buf_page_print(buf_frame_align(rec));
|
||||
fprintf(stderr,
|
||||
" InnoDB: Index corruption: rec offs %lu next offs %lu, page no %lu,\n"
|
||||
"\nInnoDB: rec address %lx, first buffer frame %lx\n"
|
||||
"InnoDB: buffer pool high end %lx, buf block fix count %lu\n",
|
||||
(ulong)rec, (ulong)buf_pool->frame_zero,
|
||||
(ulong)buf_pool->high_end,
|
||||
(ulong)buf_block_align(rec)->buf_fix_count);
|
||||
fprintf(stderr,
|
||||
"InnoDB: Index corruption: rec offs %lu next offs %lu, page no %lu,\n"
|
||||
"InnoDB: ",
|
||||
(ulint)(rec - buf_frame_align(rec)), next_offs,
|
||||
buf_frame_get_page_no(rec));
|
||||
|
|
Loading…
Reference in a new issue