Commit e337caa1 authored by marko's avatar marko

branches/zip: row_merge_read_clustered_index(): Correctly skip the page

infimum and supremum.  This was broken in r1515.
parent 0bcef79f
...@@ -1475,6 +1475,8 @@ row_merge_read_clustered_index( ...@@ -1475,6 +1475,8 @@ row_merge_read_clustered_index(
dtuple_t* row; dtuple_t* row;
row_ext_t* ext; row_ext_t* ext;
btr_pcur_move_to_next_on_page(&pcur, &mtr);
/* When switching pages, commit the mini-transaction /* When switching pages, commit the mini-transaction
in order to release the latch on the old page. */ in order to release the latch on the old page. */
...@@ -1484,11 +1486,10 @@ row_merge_read_clustered_index( ...@@ -1484,11 +1486,10 @@ row_merge_read_clustered_index(
mtr_start(&mtr); mtr_start(&mtr);
btr_pcur_restore_position(BTR_SEARCH_LEAF, btr_pcur_restore_position(BTR_SEARCH_LEAF,
&pcur, &mtr); &pcur, &mtr);
} if (!btr_pcur_move_to_next_user_rec(&pcur, &mtr)) {
if (!btr_pcur_move_to_next(&pcur, &mtr)) {
break; break;
} }
}
rec = btr_pcur_get_rec(&pcur); rec = btr_pcur_get_rec(&pcur);
......
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