Commit 954237c0 authored by marko's avatar marko

branches/zip: btr_compress(): Enclose an assertion inside

#ifdef UNIV_BTR_DEBUG, as it depends on other #ifdef UNIV_BTR_DEBUG code.
parent 53fec05c
...@@ -2437,9 +2437,11 @@ btr_compress( ...@@ -2437,9 +2437,11 @@ btr_compress(
if (UNIV_UNLIKELY(!orig_succ)) { if (UNIV_UNLIKELY(!orig_succ)) {
ut_a(merge_page_zip); ut_a(merge_page_zip);
#ifdef UNIV_BTR_DEBUG
/* FIL_PAGE_PREV was restored from merge_page_zip. */ /* FIL_PAGE_PREV was restored from merge_page_zip. */
ut_ad(!memcmp(fil_page_prev, ut_a(!memcmp(fil_page_prev,
merge_page + FIL_PAGE_PREV, 4)); merge_page + FIL_PAGE_PREV, 4));
#endif /* UNIV_BTR_DEBUG */
goto err_exit; goto err_exit;
} }
......
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