Commit 26e4ba5e authored by Marko Mäkelä's avatar Marko Mäkelä

Fix cmake -DWITH_INNODB_EXTRA_DEBUG (UNIV_ZIP_DEBUG)

parent d4339620
......@@ -3366,7 +3366,7 @@ page_zip_validate_low(
differed. Let us ignore it. */
page_zip_fail(("page_zip_validate:"
" min_rec_flag"
" (%s" ULINTPF "," ULINTPF
" (%s" UINT32PF "," UINT32PF
",0x%02x)\n",
sloppy ? "ignored, " : "",
page_get_space_id(page),
......@@ -3411,7 +3411,8 @@ page_zip_validate_low(
page + PAGE_NEW_INFIMUM, TRUE);
trec = page_rec_get_next_low(
temp_page + PAGE_NEW_INFIMUM, TRUE);
const ulint n_core = page_is_leaf(page) ? index->n_fields : 0;
const ulint n_core = (index && page_is_leaf(page))
? index->n_fields : 0;
do {
if (page_offset(rec) != page_offset(trec)) {
......
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