diff options
author | heikki@hundin.mysql.fi <> | 2004-10-26 20:29:11 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2004-10-26 20:29:11 +0300 |
commit | 3729ba77065b0d69ca6d4c901d14d517913565ca (patch) | |
tree | ebebda4471b8b1b1aa27dbecf53f07d24b74e697 /innobase/os | |
parent | 837f1bd12b5c80446bf0ee243303c66d37c6a69e (diff) | |
download | mariadb-git-3729ba77065b0d69ca6d4c901d14d517913565ca.tar.gz |
row0mysql.c:
Print more warnings to the .err log if ALTER TABLE ... IMPORT TABLESPACE fails for some reason
os0file.c:
Do not call exit(1) if os_file_delete() fails; remove unused parameter from
handle_error_no_exit()
fil0fil.c:
Allow DROP TABLE even if the .ibd file for the table does not exist
Diffstat (limited to 'innobase/os')
-rw-r--r-- | innobase/os/os0file.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index f70e8c9b587..5c140e4b798 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -410,14 +410,11 @@ os_file_handle_error_no_exit( /*=========================*/ /* out: TRUE if we should retry the operation */ - os_file_t file, /* in: file pointer */ const char* name, /* in: name of a file or NULL */ const char* operation)/* in: operation */ { ulint err; - UT_NOT_USED(file); - err = os_file_get_last_error(FALSE); if (err == OS_FILE_DISK_FULL) { @@ -624,7 +621,7 @@ os_file_closedir( ret = FindClose(dir); if (!ret) { - os_file_handle_error_no_exit(NULL, NULL, "closedir"); + os_file_handle_error_no_exit(NULL, "closedir"); return(-1); } @@ -636,7 +633,7 @@ os_file_closedir( ret = closedir(dir); if (ret) { - os_file_handle_error_no_exit(0, NULL, "closedir"); + os_file_handle_error_no_exit(NULL, "closedir"); } return(ret); @@ -705,7 +702,7 @@ http://www.mysql.com/doc/en/Windows_symbolic_links.html */ return(1); } else { - os_file_handle_error_no_exit(NULL, dirname, + os_file_handle_error_no_exit(dirname, "readdir_next_file"); return(-1); } @@ -737,7 +734,7 @@ next_file: ret = stat(full_path, &statinfo); if (ret) { - os_file_handle_error_no_exit(0, full_path, "stat"); + os_file_handle_error_no_exit(full_path, "stat"); ut_free(full_path); @@ -1326,7 +1323,7 @@ loop: ret = unlink((const char*)name); if (ret != 0 && errno != ENOENT) { - os_file_handle_error(name, "delete"); + os_file_handle_error_no_exit(name, "delete"); return(FALSE); } @@ -1388,7 +1385,7 @@ loop: ret = unlink((const char*)name); if (ret != 0) { - os_file_handle_error(name, "delete"); + os_file_handle_error_no_exit(name, "delete"); return(FALSE); } @@ -2117,7 +2114,7 @@ try_again: #ifdef __WIN__ error_handling: #endif - retry = os_file_handle_error_no_exit(file, NULL, "read"); + retry = os_file_handle_error_no_exit(NULL, "read"); if (retry) { goto try_again; @@ -2310,7 +2307,7 @@ os_file_status( } else if (ret) { /* file exists, but stat call failed */ - os_file_handle_error_no_exit(0, path, "stat"); + os_file_handle_error_no_exit(path, "stat"); return(FALSE); } @@ -2338,7 +2335,7 @@ os_file_status( } else if (ret) { /* file exists, but stat call failed */ - os_file_handle_error_no_exit(0, path, "stat"); + os_file_handle_error_no_exit(path, "stat"); return(FALSE); } @@ -2381,7 +2378,7 @@ os_file_get_status( } else if (ret) { /* file exists, but stat call failed */ - os_file_handle_error_no_exit(0, path, "stat"); + os_file_handle_error_no_exit(path, "stat"); return(FALSE); } @@ -2412,7 +2409,7 @@ os_file_get_status( } else if (ret) { /* file exists, but stat call failed */ - os_file_handle_error_no_exit(0, path, "stat"); + os_file_handle_error_no_exit(path, "stat"); return(FALSE); } |