Commit 0305ddf2 authored by osku@127.(none)'s avatar osku@127.(none)

InnoDB: Handle temporary file creation failure more gracefully.

parent 4b24f83f
......@@ -591,15 +591,17 @@ row_ins_set_detailed(
FILE* tf = os_file_create_tmpfile();
ut_a(tf);
ut_print_name(tf, trx, foreign->foreign_table_name);
dict_print_info_on_foreign_key_in_create_format(tf, trx,
foreign, FALSE);
if (tf) {
ut_print_name(tf, trx, foreign->foreign_table_name);
dict_print_info_on_foreign_key_in_create_format(tf, trx,
foreign, FALSE);
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