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
ace7798e
Commit
ace7798e
authored
Jul 21, 2008
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge
parents
c137f3d4
b7d4c76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
sql/log.cc
sql/log.cc
+20
-7
No files found.
sql/log.cc
View file @
ace7798e
...
...
@@ -3070,6 +3070,7 @@ int MYSQL_BIN_LOG::purge_logs(const char *to_log,
int
ret
=
0
;
bool
exit_loop
=
0
;
LOG_INFO
log_info
;
THD
*
thd
=
current_thd
;
DBUG_ENTER
(
"purge_logs"
);
DBUG_PRINT
(
"info"
,(
"to_log= %s"
,
to_log
));
...
...
@@ -3140,18 +3141,30 @@ int MYSQL_BIN_LOG::purge_logs(const char *to_log,
}
else
{
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_BINLOG_PURGE_FATAL_ERR
,
"a problem with deleting %s; "
"consider examining correspondence "
"of your binlog index file "
"to the actual binlog files"
,
log_info
.
log_file_name
);
if
(
thd
)
{
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_BINLOG_PURGE_FATAL_ERR
,
"a problem with deleting %s; "
"consider examining correspondence "
"of your binlog index file "
"to the actual binlog files"
,
log_info
.
log_file_name
);
}
else
{
sql_print_information
(
"Failed to delete file '%s'; "
"consider examining correspondence "
"of your binlog index file "
"to the actual binlog files"
,
log_info
.
log_file_name
);
}
if
(
my_errno
==
EMFILE
)
{
DBUG_PRINT
(
"info"
,
(
"my_errno: %d, set ret = LOG_INFO_EMFILE"
,
my_errno
));
error
=
LOG_INFO_EMFILE
;
goto
err
;
}
error
=
LOG_INFO_FATAL
;
goto
err
;
...
...
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