mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
fil0fil.c:
Print to the .err log a more detailed error message if in IMPORT TABLESPACE the .ibd file does not exist
This commit is contained in:
parent
3729ba7706
commit
a761a901b4
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue