summaryrefslogtreecommitdiff
path: root/storage/xtradb/btr/btr0cur.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/btr/btr0cur.cc')
-rw-r--r--storage/xtradb/btr/btr0cur.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/xtradb/btr/btr0cur.cc b/storage/xtradb/btr/btr0cur.cc
index 6480b756f4e..1a27fd0d6ea 100644
--- a/storage/xtradb/btr/btr0cur.cc
+++ b/storage/xtradb/btr/btr0cur.cc
@@ -2466,10 +2466,10 @@ any_extern:
rec = page_cur_get_rec(page_cursor);
}
- /* We limit max record size to 16k for 64k page size. */
- if (!dict_table_is_comp(index->table)
- && new_rec_size > REDUNDANT_REC_MAX_DATA_SIZE) {
- ut_ad(srv_page_size == UNIV_PAGE_SIZE_MAX);
+ /* We limit max record size to 16k even for 64k page size. */
+ if (new_rec_size >= COMPRESSED_REC_MAX_DATA_SIZE ||
+ (!dict_table_is_comp(index->table)
+ && new_rec_size >= REDUNDANT_REC_MAX_DATA_SIZE)) {
err = DB_OVERFLOW;
goto func_exit;