mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
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:
parent
3d9183da6a
commit
4cd65bb092
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue