mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
A fix (bug #5546: mysqld crash on PURGE MASTER LOGS BEFORE '...' with log-bin off).
This commit is contained in:
parent
23c2113d9d
commit
52b355e1f8
1 changed files with 7 additions and 2 deletions
|
|
@ -306,8 +306,13 @@ int purge_master_logs(THD* thd, const char* to_log)
|
|||
|
||||
int purge_master_logs_before_date(THD* thd, time_t purge_time)
|
||||
{
|
||||
int res = mysql_bin_log.purge_logs_before_date(purge_time);
|
||||
return purge_error_message(thd ,res);
|
||||
if (!mysql_bin_log.is_open())
|
||||
{
|
||||
send_ok(current_thd);
|
||||
return 0;
|
||||
}
|
||||
return purge_error_message(thd,
|
||||
mysql_bin_log.purge_logs_before_date(purge_time));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue