1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added 'PURGE LOGS BEFORE' command

Added expire-logs-days option
This commit is contained in:
gluh@gluh.mysql.r18.ru
2003-03-11 13:49:06 +04:00
parent 2022b7b68f
commit e7f4bf5b27
8 changed files with 42 additions and 35 deletions

View File

@ -133,6 +133,7 @@ public:
int generate_new_name(char *new_name,const char *old_name);
void make_log_name(char* buf, const char* log_ident);
bool is_active(const char* log_file_name);
int update_log_index(LOG_INFO* linfo);
int purge_logs(THD* thd, const char* to_log);
int purge_logs_before_date(THD* thd, time_t purge_time);
int purge_first_log(struct st_relay_log_info* rli);