Commit 4cd65bb0 authored by marko's avatar marko

branches/zip: page_mem_alloc_free(): Fix the debug assertion that was

accidentally broken in r1939.  It failed when next_rec == NULL.
parent 3d9183da
......@@ -859,9 +859,11 @@ page_mem_alloc_free(
#ifdef UNIV_DEBUG
const rec_t* old_rec = page_header_get_ptr(page, PAGE_FREE);
ulint next_offs;
ut_ad(old_rec);
ut_ad(next_rec == page + rec_get_next_offs(old_rec,
page_is_comp(page)));
next_offs = rec_get_next_offs(old_rec, page_is_comp(page));
ut_ad(next_rec == (next_offs ? page + next_offs : NULL));
#endif
page_header_set_ptr(page, page_zip, PAGE_FREE, next_rec);
......
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