btr_page_split_and_insert(): Add an assertion

suggested by Sunny Bains when reviewing Bug #52964.
This commit is contained in:
Marko Mäkelä 2010-05-11 13:49:10 +03:00
parent 5acbc67f6e
commit b7cf210256

View file

@ -2000,6 +2000,7 @@ func_start:
goto insert_empty;
}
} else if (UNIV_UNLIKELY(insert_left)) {
ut_a(n_iterations > 0);
first_rec = page_rec_get_next(page_get_infimum_rec(page));
move_limit = page_rec_get_next(btr_cur_get_rec(cursor));
} else {