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

accidentally broken in r1939.  It failed when next_rec == NULL.
This commit is contained in:
marko 2007-10-05 11:33:19 +00:00
parent 3d9183da6a
commit 4cd65bb092

View file

@ -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);