SHA256
1
0
forked from pool/mariadb
mariadb/mariadb-10.2.4-logrotate.patch
Martin Pluskal b1ca2a27cf Accepting request 747661 from home:kstreitova:branches:server:database
- update to 10.3.20
  * notable changes for 10.3.20
    * MDEV-20987: InnoDB fails to start when FTS table has FK relation
  * notable changes for 10.3.19
    * MDEV-20864: Debug-only option innodb_change_buffer_dump for
      dumping the contents of the InnoDB change buffer to the
      server error log at startup.
    * MariaBackup:
      * MDEV-18438: mbstream recreates xtrabackup_info on same
        directory as backup file
      * MDEV-20703: mariabackup creates binlog files in serve
        binlog directory on --prepare --export step
    * FULLTEXT INDEX:
      * MDEV-19647: Server hangs after dropping full text indexes
        and restart
      * MDEV-19529: InnoDB hang on DROP FULLTEXT INDEX
      * MDEV-19073: FTS row mismatch after crash recovery
      * MDEV-20621: FULLTEXT INDEX activity causes InnoDB hang
      * MDEV-20927: Duplicate key with auto increment
    * ALTER TABLE:
      * MDEV-20799: DROP Virtual Column crash
      * MDEV-20852: BtrBulk is unnecessarily holding dict_index_t::lock
    * System-Versioned Tables:
      * MDEV-16210: FK constraints on versioned tables use historical
        rows, which may cause constraint violation
      * MDEV-20812: Unexpected ER_ROW_IS_REFERENCED_2 or server
        crash in row_ins_foreign_report_err upon DELETE from
        versioned table with FK
    * Galera wsrep library updated to 25.3.28
  * Fixes for the following security vulnerabilities:

OBS-URL: https://build.opensuse.org/request/show/747661
OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=239
2019-11-12 14:59:48 +00:00

36 lines
1.1 KiB
Diff

PATCH-P0-FIX-SUSE: Fix log file path for logrotate
In SUSE we've got MySQL log in different directory. It's located in
/var/log/mysql by default. It also adds some extra error message.
Maintainer: Michal Hrusecky <Michal.Hrusecky@opensuse.org>
Index: support-files/mysql-log-rotate.sh
===================================================================
--- support-files/mysql-log-rotate.sh.orig
+++ support-files/mysql-log-rotate.sh
@@ -18,7 +18,7 @@
# ATTENTION: This /root/.my.cnf should be readable ONLY
# for root !
-@localstatedir@/mysqld.log {
+/var/log/mysql/*.log {
# create 600 mysql mysql
notifempty
daily
@@ -32,6 +32,14 @@
then
@bindir@/mysqladmin --local flush-error-log \
flush-engine-log flush-general-log flush-slow-log
+ ret=$?
+ if test $ret -ne 0
+ then
+ echo "/etc/logrotate.d/mariadb failed, probably because" >&2
+ echo "the root acount is protected by password." >&2
+ echo "See comments in /etc/logrotate.d/mariadb on how to fix this" >&2
+ exit $ret
+ fi
fi
endscript
}