Commit 5d591705 authored by marko's avatar marko

branches/zip: btr_lift_page_up(): Set level before page_zip_compress().

parent ed354ce8
...@@ -2082,6 +2082,10 @@ btr_lift_page_up( ...@@ -2082,6 +2082,10 @@ btr_lift_page_up(
/* Make the father empty */ /* Make the father empty */
btr_page_empty(father_page, father_page_zip, mtr, index); btr_page_empty(father_page, father_page_zip, mtr, index);
/* Set the level before inserting records, because
page_zip_compress() requires that the first user record
on a non-leaf page has the min_rec_mark set. */
btr_page_set_level(father_page, father_page_zip, page_level, mtr);
/* Move records to the father */ /* Move records to the father */
if (!page_copy_rec_list_end(father_page, father_page_zip, if (!page_copy_rec_list_end(father_page, father_page_zip,
...@@ -2092,8 +2096,6 @@ btr_lift_page_up( ...@@ -2092,8 +2096,6 @@ btr_lift_page_up(
ut_error; ut_error;
} }
btr_page_set_level(father_page, father_page_zip, page_level, mtr);
lock_update_copy_and_discard(father_page, page); lock_update_copy_and_discard(father_page, page);
/* Free the file page */ /* Free the file page */
......
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