Commit e20dfbc0 authored by marko's avatar marko

branches/zip: Disable accidentally committed debug code that would break

crash recovery of uncompressed tables.
parent 9b620097
...@@ -1914,8 +1914,7 @@ buf_page_io_complete( ...@@ -1914,8 +1914,7 @@ buf_page_io_complete(
/* From version 3.23.38 up we store the page checksum /* From version 3.23.38 up we store the page checksum
to the 4 first bytes of the page end lsn field */ to the 4 first bytes of the page end lsn field */
if (buf_page_is_corrupted(block->frame, if (buf_page_is_corrupted(block->frame, 0/*TODO:zip_size*/)) {
block->space ? 16384 : 0/* TODO */)) {
fprintf(stderr, fprintf(stderr,
"InnoDB: Database page corruption on disk or a failed\n" "InnoDB: Database page corruption on disk or a failed\n"
"InnoDB: file read of page %lu.\n", (ulong) block->offset); "InnoDB: file read of page %lu.\n", (ulong) block->offset);
......
...@@ -455,7 +455,7 @@ buf_flush_init_for_writing( ...@@ -455,7 +455,7 @@ buf_flush_init_for_writing(
{ {
page_zip_des_t* page_zip = page_zip_; page_zip_des_t* page_zip = page_zip_;
if (space/* TODO: space_is_zip */) { if (0/*space/* TODO: space_is_zip */) {
switch (fil_page_get_type(page)) { switch (fil_page_get_type(page)) {
case FIL_PAGE_TYPE_ZBLOB: case FIL_PAGE_TYPE_ZBLOB:
ut_ad(!page_zip); ut_ad(!page_zip);
......
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