commit:     8865ff87d9240332171bd9b5da6a7af16fe57e62
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 12 22:41:38 2019 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 22:42:39 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8865ff87

dev-db/mariadb: Alert users to the deprecation of sst-xtrabackup

sst-xtrabackup is broken by default in >=10.2.19 and incompatible in >=10.3

Issue ewarns for those on 10.2 to move to sst-mariabackup instead

Closes: https://bugs.gentoo.org/677674
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 dev-db/mariadb/mariadb-10.2.22-r1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-db/mariadb/mariadb-10.2.22-r1.ebuild 
b/dev-db/mariadb/mariadb-10.2.22-r1.ebuild
index 378d0f3fde9..1c7bc36bc7d 100644
--- a/dev-db/mariadb/mariadb-10.2.22-r1.ebuild
+++ b/dev-db/mariadb/mariadb-10.2.22-r1.ebuild
@@ -225,6 +225,12 @@ pkg_postinst() {
                        elog "--wsrep-new-cluster to the options in 
/etc/conf.d/mysql for one node."
                        elog "This option should then be removed for subsequent 
starts."
                        einfo
+                       if use sst-xtrabackup ; then
+                               ewarn "As per 
https://mariadb.com/kb/en/meta/xtrabackup_warning/, XtraBackup"
+                               ewarn "as an SST is broken by default beginning 
with 10.2.19 with the setting"
+                               ewarn "innodb_safe_truncate=ON.  Please migrate 
to sst-mariabackup instead."
+                               ewarn "sst-xtrabackup is being removed in 10.3 
and higher."
+                       fi
                fi
        fi
 

Reply via email to