Commit 095c759f authored by marko's avatar marko

branches/zip: page_copy_rec_list_start(): Remove the bogus assertion that was

added in r2554.  When this function is called on an empty new_block, "ret"
will always point to the page infimum.
parent e1c9387b
...@@ -736,12 +736,11 @@ page_copy_rec_list_start( ...@@ -736,12 +736,11 @@ page_copy_rec_list_start(
store the number of preceding records on the page. */ store the number of preceding records on the page. */
ulint ret_pos ulint ret_pos
= page_rec_get_n_recs_before(ret); = page_rec_get_n_recs_before(ret);
/* Before copying, "ret" was the successor of /* Before copying, "ret" was the predecessor
the predefined infimum record. It must still of the predefined supremum record. If it was
have at least one predecessor (the predefined the predefined infimum record, then it would
infimum record, or a freshly copied record still be the infimum. Thus, the assertion
that is smaller than "ret"). */ ut_a(ret_pos > 0) would fail here. */
ut_a(ret_pos > 0);
if (UNIV_UNLIKELY if (UNIV_UNLIKELY
(!page_zip_reorganize(new_block, index, mtr))) { (!page_zip_reorganize(new_block, index, mtr))) {
......
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