Commit 2b202464 authored by marko's avatar marko

branches/zip: Dump the compressed page when fil_page_get_type() returns

an incorrect value.  This is to track down Mantis issue#63 and issue#65.

buf_LRU_block_remove_hashed_page(),
buf_flush_init_for_writing(): dump the compressed page before ut_error.
parent 095c759f
......@@ -634,6 +634,10 @@ buf_flush_init_for_writing(
return;
}
ut_print_timestamp(stderr);
fputs(" InnoDB: ERROR: The compressed page to be written"
" seems corrupt:", stderr);
ut_print_buf(stderr, page_zip->data, zip_size);
ut_error;
}
......
......@@ -1484,6 +1484,11 @@ buf_LRU_block_remove_hashed_page(
#endif /* UNIV_ZIP_DEBUG */
break;
default:
ut_print_timestamp(stderr);
fputs(" InnoDB: ERROR: The compressed page"
" to be evicted seems corrupt:", stderr);
ut_print_buf(stderr, bpage->zip.data,
page_zip_get_size(&bpage->zip));
ut_error;
}
......
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