summaryrefslogtreecommitdiff
path: root/innobase/fil
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-10-26 20:47:23 +0300
committerunknown <heikki@hundin.mysql.fi>2004-10-26 20:47:23 +0300
commitfd92c0787d72ea04a771b3f6e0874acc16551688 (patch)
treebdad28ce36bfb53ced201446ed7209003e1e16d8 /innobase/fil
parenta0df01faa5b06c951922ffdbb0ed02260386c080 (diff)
downloadmariadb-git-fd92c0787d72ea04a771b3f6e0874acc16551688.tar.gz
fil0fil.c:
Print to the .err log a more detailed error message if in IMPORT TABLESPACE the .ibd file does not exist innobase/fil/fil0fil.c: Print to the .err log a more detailed error message if in IMPORT TABLESPACE the .ibd file does not exist
Diffstat (limited to 'innobase/fil')
-rw-r--r--innobase/fil/fil0fil.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/innobase/fil/fil0fil.c b/innobase/fil/fil0fil.c
index 98dea14f47b..7d57468f632 100644
--- a/innobase/fil/fil0fil.c
+++ b/innobase/fil/fil0fil.c
@@ -2370,6 +2370,16 @@ fil_reset_too_high_lsns(
file = os_file_create_simple_no_error_handling(filepath, OS_FILE_OPEN,
OS_FILE_READ_WRITE, &success);
if (!success) {
+ /* The following call prints an error message */
+ os_file_get_last_error(TRUE);
+
+ ut_print_timestamp(stderr);
+
+ fputs(
+" InnoDB: Error: trying to open a table, but could not\n"
+"InnoDB: open the tablespace file ", stderr);
+ ut_print_filename(stderr, filepath);
+ fputs("!\n", stderr);
mem_free(filepath);
return(FALSE);