Skip to content

Commit a1a32f8

Browse files
author
Jan Lindström
committed
Revert file space allocation change on row0merge.cc.
1 parent 454beee commit a1a32f8

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

storage/innobase/row/row0merge.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,24 +2395,6 @@ row_merge_insert_index_tuples(
23952395
#endif /* UNIV_DEBUG */
23962396
ulint* ins_offsets = NULL;
23972397

2398-
/* First reserve enough free space for the file segments
2399-
of the index tree, so that the insert will not fail because
2400-
of lack of space */
2401-
2402-
{
2403-
ulint n_extents = cursor.tree_height / 16 + 3;
2404-
ibool success;
2405-
ulint n_reserved = 0;
2406-
2407-
success = fsp_reserve_free_extents(&n_reserved, index->space,
2408-
n_extents, FSP_NORMAL, &mtr);
2409-
2410-
if (!success) {
2411-
error = DB_OUT_OF_FILE_SPACE;
2412-
goto err_exit;
2413-
}
2414-
}
2415-
24162398
error = btr_cur_optimistic_insert(
24172399
BTR_NO_UNDO_LOG_FLAG | BTR_NO_LOCKING_FLAG
24182400
| BTR_KEEP_SYS_FLAG | BTR_CREATE_FLAG,

storage/xtradb/row/row0merge.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,24 +2401,6 @@ row_merge_insert_index_tuples(
24012401
#endif /* UNIV_DEBUG */
24022402
ulint* ins_offsets = NULL;
24032403

2404-
/* First reserve enough free space for the file segments
2405-
of the index tree, so that the insert will not fail because
2406-
of lack of space */
2407-
2408-
{
2409-
ulint n_extents = cursor.tree_height / 16 + 3;
2410-
ibool success;
2411-
ulint n_reserved = 0;
2412-
2413-
success = fsp_reserve_free_extents(&n_reserved, index->space,
2414-
n_extents, FSP_NORMAL, &mtr);
2415-
2416-
if (!success) {
2417-
error = DB_OUT_OF_FILE_SPACE;
2418-
goto err_exit;
2419-
}
2420-
}
2421-
24222404
error = btr_cur_optimistic_insert(
24232405
BTR_NO_UNDO_LOG_FLAG | BTR_NO_LOCKING_FLAG
24242406
| BTR_KEEP_SYS_FLAG | BTR_CREATE_FLAG,

0 commit comments

Comments
 (0)