Commit 4d1a51bb authored by marko's avatar marko

innodb_check_for_record_too_big_error(): Divide the return value of

page_get_free_space_of_empty_noninline() by 2.  Until r1571, that function
did not return the same value as page_get_free_space_of_empty().
parent d05c82db
...@@ -4518,9 +4518,8 @@ innodb_check_for_record_too_big_error( ...@@ -4518,9 +4518,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);
} }
......
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