summaryrefslogtreecommitdiff
path: root/storage/innobase/include/page0page.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2012-02-02 12:31:57 +0200
committerMarko Mäkelä <marko.makela@oracle.com>2012-02-02 12:31:57 +0200
commit39100cd98440e3060e2ba2b6ec21b171728bd0eb (patch)
treee70e0ca4f683e74f2e0fa4c72e35c8d785465717 /storage/innobase/include/page0page.ic
parent99ce9430141f7c834840234935e4557d9311eef4 (diff)
downloadmariadb-git-39100cd98440e3060e2ba2b6ec21b171728bd0eb.tar.gz
Bug #13651627 Move ut_ad(0) from the beginning to the end of buf_page_print(),
print page dump buf_page_print(): Remove the ut_ad(0) from the beginning. Add two flags (enum buf_page_print_flags) that can be bitwise-ORed together: BUF_PAGE_PRINT_NO_CRASH: Do not crash debug builds at the end of buf_page_print(). BUF_PAGE_PRINT_NO_FULL: Do not print the full page dump. This can be useful when adding diagnostic printout to flushing or to the doublewrite buffer. trx_sys_doublewrite_init_or_restore_page(): Replace exit(1) with ut_error, so that we can get a core dump if this extraordinary condition happens. rb:924 approved by Sunny Bains
Diffstat (limited to 'storage/innobase/include/page0page.ic')
-rw-r--r--storage/innobase/include/page0page.ic2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic
index 115cee64f8b..50b4e3808c8 100644
--- a/storage/innobase/include/page0page.ic
+++ b/storage/innobase/include/page0page.ic
@@ -710,7 +710,7 @@ page_rec_get_next_low(
(void*) rec,
(ulong) page_get_space_id(page),
(ulong) page_get_page_no(page));
- buf_page_print(page, 0);
+ buf_page_print(page, 0, 0);
ut_error;
}