summaryrefslogtreecommitdiff
path: root/storage/innobase/btr
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2015-03-09 18:21:48 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2015-03-09 18:33:25 +0200
commita7fd11b31d52b62ef7b61783bb83a5e62271307b (patch)
tree979131c0d6ce96f32c4d56f87008d54e1bdeef42 /storage/innobase/btr
parentec16d1b62fb08b4dd3aa415a9bf717b5039a56cc (diff)
downloadmariadb-git-a7fd11b31d52b62ef7b61783bb83a5e62271307b.tar.gz
MDEV-7685: MariaDB - server crashes when inserting more rows than
available space on disk Add error handling when disk full situation happens and intentionally bring server down with stacktrace because on all cases InnoDB can't continue anyway.
Diffstat (limited to 'storage/innobase/btr')
-rw-r--r--storage/innobase/btr/btr0btr.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/storage/innobase/btr/btr0btr.cc b/storage/innobase/btr/btr0btr.cc
index 00b90120f6c..79b533481b7 100644
--- a/storage/innobase/btr/btr0btr.cc
+++ b/storage/innobase/btr/btr0btr.cc
@@ -3055,12 +3055,6 @@ func_start:
/* 2. Allocate a new page to the index */
new_block = btr_page_alloc(cursor->index, hint_page_no, direction,
btr_page_get_level(page, mtr), mtr, mtr);
-
- /* Play safe, if new page is not allocated */
- if (!new_block) {
- return(rec);
- }
-
new_page = buf_block_get_frame(new_block);
new_page_zip = buf_block_get_page_zip(new_block);
btr_page_create(new_block, new_page_zip, cursor->index,