mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
branches/zip: page_cur_delete_rec(): Remove the bogus page_zip_validate_low()
assertion that was added in r2781 and explain why it was bogus.
This commit is contained in:
parent
7124a823ac
commit
25408c8e48
1 changed files with 9 additions and 5 deletions
|
@ -1766,11 +1766,15 @@ page_cur_delete_rec(
|
|||
|
||||
page = page_cur_get_page(cursor);
|
||||
page_zip = page_cur_get_page_zip(cursor);
|
||||
#ifdef UNIV_ZIP_DEBUG
|
||||
/* Strict page_zip_validate() may fail here when
|
||||
btr_cur_pessimistic_delete() invokes btr_set_min_rec_mark(). */
|
||||
ut_a(!page_zip || page_zip_validate_low(page_zip, page, TRUE));
|
||||
#endif /* UNIV_ZIP_DEBUG */
|
||||
|
||||
/* page_zip_validate() will fail here when
|
||||
btr_cur_pessimistic_delete() invokes btr_set_min_rec_mark().
|
||||
Then, both "page_zip" and "page" would have the min-rec-mark
|
||||
set on the smallest user record, but "page" would additionally
|
||||
have it set on the smallest-but-one record. Because sloppy
|
||||
page_zip_validate_low() only ignores min-rec-flag differences
|
||||
in the smallest user record, it cannot be used here either. */
|
||||
|
||||
current_rec = cursor->rec;
|
||||
ut_ad(rec_offs_validate(current_rec, index, offsets));
|
||||
ut_ad(!!page_is_comp(page) == dict_table_is_comp(index->table));
|
||||
|
|
Loading…
Add table
Reference in a new issue