Commit 5a136d84 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-19766: Disable page dump output in debug builds

The test innodb.leaf_page_corrupted_during_recovery
fails on buildbot with

Warning	1406	Data too long for column 'line' at row 10
line
 len 16384; hex ...

because of a page dumps that InnoDB is generating for a corrupted page

Since this test is using debug instrumentation, we will solve the
issue by disabling page dumps in debug builds altogether. Users of
debug builds will likely know how to extract page dumps in other means.

Page dump output could sometimes be useful when diagnosing problems
that users are facing. Hence we will keep the page dump output in
non-debug (release) builds.
parent 85d0a195
......@@ -1273,11 +1273,13 @@ buf_page_print(const byte* read_buf, const page_size_t& page_size)
{
dict_index_t* index;
#ifndef UNIV_DEBUG
ib::info() << "Page dump in ascii and hex ("
<< page_size.physical() << " bytes):";
ut_print_buf(stderr, read_buf, page_size.physical());
fputs("\nInnoDB: End of page dump\n", stderr);
#endif
if (page_size.is_compressed()) {
/* Print compressed page. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment