diff options
author | gluh@gluh.mysql.r18.ru <> | 2003-02-16 20:39:12 +0400 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2003-02-16 20:39:12 +0400 |
commit | 2022b7b68f5dd0e87b428a8082f04cc1f3c24037 (patch) | |
tree | 6731513d8cd2f0ea43a356705e4c70c1760d53aa /sql/sql_repl.h | |
parent | d14db3961d7f6839dd211ed3c136ddd8c709778c (diff) | |
download | mariadb-git-2022b7b68f5dd0e87b428a8082f04cc1f3c24037.tar.gz |
SCRUM: 'Replication: PURGE LOGS with date' task
Added:
PURGE [MASTER] LOGS BEFORE date/date_expression
expire-logs-days option
With this option old files are deleted when
- mysqld is started
- log is rotated
- someone does FLUSH LOGS
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r-- | sql/sql_repl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h index 15435382b08..d5de8bbf953 100644 --- a/sql/sql_repl.h +++ b/sql/sql_repl.h @@ -33,6 +33,7 @@ int cmp_master_pos(const char* log_file_name1, ulonglong log_pos1, int reset_slave(THD *thd, MASTER_INFO* mi); int reset_master(THD* thd); int purge_master_logs(THD* thd, const char* to_log); +int purge_master_logs_before_date(THD* thd, time_t purge_time); bool log_in_use(const char* log_name); void adjust_linfo_offsets(my_off_t purge_offset); int show_binlogs(THD* thd); |