os0file.c:

os_file_create_tmpfile(): display errno in case of failure
This commit is contained in:
marko@hundin.mysql.fi 2004-08-10 16:11:34 +03:00
parent cd6292d219
commit 61c509fbd7

View File

@ -429,8 +429,9 @@ os_file_create_tmpfile(void)
if (!file) {
ut_print_timestamp(stderr);
fputs(" InnoDB: Error: unable to create temporary file\n",
stderr);
fprintf(stderr,
" InnoDB: Error: unable to create temporary file;"
" errno: %d\n", errno);
if (fd >= 0) {
close(fd);
}