Commit 3d23a234 authored by unknown's avatar unknown

InnoDB: Handle temporary file creation failure more gracefully.


innobase/row/row0ins.c:
  Don't assert on temp file creation failure.
parent ddd18a89
...@@ -591,8 +591,7 @@ row_ins_set_detailed( ...@@ -591,8 +591,7 @@ row_ins_set_detailed(
FILE* tf = os_file_create_tmpfile(); FILE* tf = os_file_create_tmpfile();
ut_a(tf); if (tf) {
ut_print_name(tf, trx, foreign->foreign_table_name); ut_print_name(tf, trx, foreign->foreign_table_name);
dict_print_info_on_foreign_key_in_create_format(tf, trx, dict_print_info_on_foreign_key_in_create_format(tf, trx,
foreign, FALSE); foreign, FALSE);
...@@ -600,6 +599,9 @@ row_ins_set_detailed( ...@@ -600,6 +599,9 @@ row_ins_set_detailed(
trx_set_detailed_error_from_file(trx, tf); trx_set_detailed_error_from_file(trx, tf);
fclose(tf); fclose(tf);
} else {
trx_set_detailed_error(trx, "temp file creation failed");
}
} }
/************************************************************************* /*************************************************************************
......
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