summaryrefslogtreecommitdiff
path: root/storage/xtradb
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb')
-rw-r--r--storage/xtradb/row/row0merge.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/storage/xtradb/row/row0merge.cc b/storage/xtradb/row/row0merge.cc
index 1d66707736d..5d88d750478 100644
--- a/storage/xtradb/row/row0merge.cc
+++ b/storage/xtradb/row/row0merge.cc
@@ -2401,24 +2401,6 @@ row_merge_insert_index_tuples(
#endif /* UNIV_DEBUG */
ulint* ins_offsets = NULL;
- /* First reserve enough free space for the file segments
- of the index tree, so that the insert will not fail because
- of lack of space */
-
- {
- ulint n_extents = cursor.tree_height / 16 + 3;
- ibool success;
- ulint n_reserved = 0;
-
- success = fsp_reserve_free_extents(&n_reserved, index->space,
- n_extents, FSP_NORMAL, &mtr);
-
- if (!success) {
- error = DB_OUT_OF_FILE_SPACE;
- goto err_exit;
- }
- }
-
error = btr_cur_optimistic_insert(
BTR_NO_UNDO_LOG_FLAG | BTR_NO_LOCKING_FLAG
| BTR_KEEP_SYS_FLAG | BTR_CREATE_FLAG,