Commit fa97bf6e authored by marko's avatar marko

branches/zip: page_zip_write_rec(): Add a page_zip_validate() assertion.

parent 7f2d91cb
...@@ -1845,6 +1845,11 @@ page_zip_write_rec( ...@@ -1845,6 +1845,11 @@ page_zip_write_rec(
page_zip->m_end = data - page_zip->data; page_zip->m_end = data - page_zip->data;
ut_a(!mach_read_from_2(data)); ut_a(!mach_read_from_2(data));
#if defined UNIV_DEBUG || defined UNIV_ZIP_DEBUG
ut_a(page_zip_validate(page_zip,
ut_align_down((byte*) rec, UNIV_PAGE_SIZE)));
#endif /* UNIV_DEBUG || UNIV_ZIP_DEBUG */
/* TODO: write a redo log record (MLOG_ZIP_WRITE_REC), /* TODO: write a redo log record (MLOG_ZIP_WRITE_REC),
or is it at all needed? */ or is it at all needed? */
} }
......
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