Skip to content

Commit c2b86df

Browse files
authored
Update btr0cur.cc
1 parent 97b23d7 commit c2b86df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-5.6.26/storage/innobase/btr/btr0cur.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ btr_cur_optimistic_insert(
13941394
if (index->space == srv_ol_space_id && leaf && dict_index_is_clust(index)) {
13951395
if (leaf && !zip_size && dict_index_is_clust(index)
13961396
&& page_get_n_recs(page) >= 2
1397-
&& ( UNIV_PAGE_SIZE/16 + rec_size) > max_size //(UNIV_PAGE_SIZE/10)
1397+
&& ( dict_index_get_space_reserve() + rec_size) > max_size //(UNIV_PAGE_SIZE/10)
13981398
&& (btr_page_get_split_rec_to_right(cursor, &dummy)
13991399
|| btr_page_get_split_rec_to_left(cursor, &dummy))) {
14001400
goto fail;

0 commit comments

Comments
 (0)