Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
96d6b550
Commit
96d6b550
authored
Apr 24, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os0file.c Added better error message if disk is full; calls exit(1)
parent
b2fa0010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
innobase/os/os0file.c
innobase/os/os0file.c
+8
-22
No files found.
innobase/os/os0file.c
View file @
96d6b550
...
...
@@ -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
(
"Inno
base e
ncountered a problem with file %s.
\n
"
,
fprintf
(
stderr
,
"Inno
DB: E
ncountered 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment