Commit e621c1e2 authored by marko's avatar marko

branches/zip: Merge 1571:1575 from trunk.

parent df6107de
...@@ -4566,9 +4566,8 @@ innodb_check_for_record_too_big_error( ...@@ -4566,9 +4566,8 @@ innodb_check_for_record_too_big_error(
int error) /* in: error code to check */ int error) /* in: error code to check */
{ {
if (error == (int)DB_TOO_BIG_RECORD) { if (error == (int)DB_TOO_BIG_RECORD) {
ulint max_row_size; ulint max_row_size
= page_get_free_space_of_empty_noninline(comp) / 2;
max_row_size = page_get_free_space_of_empty_noninline(comp);
my_error(ER_TOO_BIG_ROWSIZE, MYF(0), max_row_size); my_error(ER_TOO_BIG_ROWSIZE, MYF(0), max_row_size);
} }
...@@ -4682,8 +4681,7 @@ create_table_def( ...@@ -4682,8 +4681,7 @@ create_table_def(
error = row_create_table_for_mysql(table, trx); error = row_create_table_for_mysql(table, trx);
innodb_check_for_record_too_big_error(dict_table_is_comp(table), innodb_check_for_record_too_big_error(flags & DICT_TF_COMPACT, error);
error);
error = convert_error_code_to_mysql(error, NULL); error = convert_error_code_to_mysql(error, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment