diff options
author | unknown <heikki@donna.mysql.fi> | 2001-04-24 16:38:08 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-04-24 16:38:08 +0300 |
commit | f6dad493db038f6578b583c8e738520e467b2a6e (patch) | |
tree | 8597785af6781b46cab99be3f2429ad54348e2e8 /innobase | |
parent | 94f07da790454dcb759a1d555c8c65c59fb663df (diff) | |
download | mariadb-git-f6dad493db038f6578b583c8e738520e467b2a6e.tar.gz |
os0file.c Added better error message if disk is full; calls exit(1)
innobase/os/os0file.c:
Added better error message if disk is full; calls exit(1)
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/os/os0file.c | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 60a63f73143..8e58bfef3f0 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -163,7 +163,6 @@ os_file_handle_error( os_file_t file, /* in: file pointer */ char* name) /* in: name of a file or NULL */ { - int input_char; ulint err; UT_NOT_USED(file); @@ -172,32 +171,19 @@ os_file_handle_error( if (err == OS_FILE_DISK_FULL) { ask_again: - printf("\n"); + fprintf(stderr, "\n"); if (name) { - printf( - "Innobase encountered a problem with file %s.\n", + fprintf(stderr, + "InnoDB: Encountered a problem with file %s.\n", name); } - printf("Disk is full. Try to clean the disk to free space\n"); - printf("before answering the following: How to continue?\n"); - printf("(Y == freed some space: try again)\n"); - printf("(N == crash the database: will restart it)?\n"); -ask_with_no_question: - input_char = getchar(); - - if (input_char == (int) 'N') { - ut_error; - - return(FALSE); - } else if (input_char == (int) 'Y') { + fprintf(stderr, + "InnoDB: Cannot continue operation.\n" + "InnoDB: Disk is full. Try to clean the disk to free space.\n" + "InnoDB: Delete possible created file %s and restart.\n"); - return(TRUE); - } else if (input_char == (int) '\n') { + exit(1); - goto ask_with_no_question; - } else { - goto ask_again; - } } else if (err == OS_FILE_AIO_RESOURCES_RESERVED) { return(TRUE); |