summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-07-30 17:02:26 +0300
committerunknown <heikki@hundin.mysql.fi>2004-07-30 17:02:26 +0300
commit5055d66bdf6dfa603d1b5006b610536c7e4b8569 (patch)
treee9a94bec5067977d13449b15506f7520cc722010 /innobase
parent3974f1cf5a42f115fca1a3f65ecf9143eab2c77e (diff)
downloadmariadb-git-5055d66bdf6dfa603d1b5006b610536c7e4b8569.tar.gz
row0sel.c, page0page.ic:
Add still more diagnostic code to track buffer pool corruption in one AMD64/Linux computer innobase/include/page0page.ic: Add still more diagnostic code to track buffer pool corruption in one AMD64/Linux computer innobase/row/row0sel.c: Add still more diagnostic code to track buffer pool corruption in one AMD64/Linux computer
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/page0page.ic7
-rw-r--r--innobase/row/row0sel.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/innobase/include/page0page.ic b/innobase/include/page0page.ic
index 27f43d5c63d..3d2bf3b090e 100644
--- a/innobase/include/page0page.ic
+++ b/innobase/include/page0page.ic
@@ -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);
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c
index 42d1f260757..6c62fed974c 100644
--- a/innobase/row/row0sel.c
+++ b/innobase/row/row0sel.c
@@ -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));