summaryrefslogtreecommitdiff
path: root/innobase/include/page0page.ic
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-07-27 09:00:17 +0300
committerunknown <heikki@hundin.mysql.fi>2004-07-27 09:00:17 +0300
commit660bf8766256e0cfeae95d188b015e663a549c74 (patch)
treea6a84774dafa9628408754fe8bcac686feb3a959 /innobase/include/page0page.ic
parent65ba6aa2934e465fa31ed6185dcd22c714bc1403 (diff)
downloadmariadb-git-660bf8766256e0cfeae95d188b015e663a549c74.tar.gz
row0sel.c, page0page.ic:
Add diagnostic code to print hex dumps and track corruption of next record offsets in an index page innobase/include/page0page.ic: Add diagnostic code to print hex dumps and track corruption of next record offsets in an index page innobase/row/row0sel.c: Add diagnostic code to print hex dumps and track corruption of next record offsets in an index page
Diffstat (limited to 'innobase/include/page0page.ic')
-rw-r--r--innobase/include/page0page.ic10
1 files changed, 9 insertions, 1 deletions
diff --git a/innobase/include/page0page.ic b/innobase/include/page0page.ic
index e7c0f8ee07c..27f43d5c63d 100644
--- a/innobase/include/page0page.ic
+++ b/innobase/include/page0page.ic
@@ -479,7 +479,15 @@ page_rec_get_next(
offs = rec_get_next_offs(rec);
- ut_a(offs < UNIV_PAGE_SIZE);
+ if (offs >= UNIV_PAGE_SIZE) {
+ fprintf(stderr,
+"InnoDB: Next record offset is nonsensical %lu in record at offset %lu\n",
+ (ulong)offs, (ulong)(rec - page));
+
+ buf_page_print(page);
+
+ ut_a(0);
+ }
if (offs == 0) {