Commit 3b88de21 authored by marko's avatar marko

branches/zip: Minor improvements.

page_cur_search_with_match(): Add a page_zip_validate() debug assertion.

page_validate(): Add a missing space to a fprintf() format string.
parent 6ecd734f
......@@ -249,6 +249,9 @@ page_cur_search_with_match(
# endif /* PAGE_CUR_LE_OR_EXTENDS */
ut_ad((mode == PAGE_CUR_L) || (mode == PAGE_CUR_LE)
|| (mode == PAGE_CUR_G) || (mode == PAGE_CUR_GE));
page_zip_des_t* page_zip = buf_block_get_page_zip(
buf_block_align(page));
ut_ad(!page_zip || page_zip_validate(page_zip, page));
#endif /* UNIV_DEBUG */
page_check_dir(page);
......
......@@ -2196,7 +2196,7 @@ page_validate(
if (UNIV_UNLIKELY(!(1 == cmp_rec_rec(rec, old_rec,
offsets, old_offsets, index)))) {
fprintf(stderr,
"InnoDB: Records in wrong order on page %lu",
"InnoDB: Records in wrong order on page %lu ",
(ulong) buf_frame_get_page_no(page));
dict_index_name_print(stderr, NULL, index);
fputs("\nInnoDB: previous record ", stderr);
......
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