Below is the list of changes that have just been committed into a local
5.0 repository of osku. When osku does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1993 05/09/26 12:46:03 osku@127.(none) +1 -0
InnoDB: Handle temporary file creation failure more gracefully.
innobase/row/row0ins.c
1.72 05/09/26 12:46:00 osku@127.(none) +10 -7
Don't assert on temp file creation failure.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: osku
# Host: 127.(none)
# Root: /home/osku/mysql/5.0/misc
--- 1.71/innobase/row/row0ins.c 2005-09-23 21:35:41 +03:00
+++ 1.72/innobase/row/row0ins.c 2005-09-26 12:46:00 +03:00
@@ -591,15 +591,18 @@
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");
+ }
}
/*************************************************************************
| Thread |
|---|
| • bk commit into 5.0 tree (osku:1.1993) | Osku Salerma | 26 Sep |