diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-02-28 21:47:44 +1100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-03-02 15:16:06 +0400 |
commit | 156cf86defdc59353f37f6bd5b685d91004f38aa (patch) | |
tree | 56ef8444d00231a6fcedfe6e8a4c1f38e5d97bc7 /debian | |
parent | 0af8b565f282f5e765fb279e28740385f3dbdaf1 (diff) | |
download | mariadb-git-156cf86defdc59353f37f6bd5b685d91004f38aa.tar.gz |
MDEV-11610: Alter Debian log rotate to not rotate binary/relay logs
Rotating binary/relay logs can cause interuption to the processing
on the server. Binary and relay logs have their own mechanism already
for not getting out of control (expire_logs_days).
By no longer rotating binary and relay logs log rotation is limited to
the following logs:
* error log
* general log
* slow query log
Writing these to the binary log would cause any logrotation on the
slave to occur twice, once due to this and another due to the log-
rotate script on the slave. Now --local is passed to mysqladmin to
prevent this duplication.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/mariadb-server-10.0.mysql-server.logrotate | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/mariadb-server-10.0.mysql-server.logrotate b/debian/mariadb-server-10.0.mysql-server.logrotate index a19e9ec46a2..dbe2a7e7dfe 100644 --- a/debian/mariadb-server-10.0.mysql-server.logrotate +++ b/debian/mariadb-server-10.0.mysql-server.logrotate @@ -14,7 +14,8 @@ if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=\K[^$]+"` ]; then # If this fails, check debian.conf! - mysqladmin --defaults-file=/etc/mysql/debian.cnf flush-logs + mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \ + flush-engine-log flush-general-log flush-slow-log fi endscript } |