summaryrefslogtreecommitdiff
path: root/storage/innobase/handler/ha_innodb.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-11-26 12:57:35 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2018-11-26 12:58:42 +0200
commit9669536c2355efb6f71babc9d2e615e9125c816b (patch)
treea5c036e90c0444727e3a423845a91bd8a545eb38 /storage/innobase/handler/ha_innodb.cc
parent2a31b82831c84aae7f23d94a8c646cd9d4d613c8 (diff)
downloadmariadb-git-9669536c2355efb6f71babc9d2e615e9125c816b.tar.gz
MDEV-17811: Add deprecation information for xtrabackup
Diffstat (limited to 'storage/innobase/handler/ha_innodb.cc')
-rw-r--r--storage/innobase/handler/ha_innodb.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 262493dd3b0..2a73afafcb4 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -154,6 +154,7 @@ innodb_check_deprecated(void);
#include "dict0priv.h"
#include "ut0byte.h"
#include <mysql/service_md5.h>
+#include "wsrep_sst.h"
extern MYSQL_PLUGIN_IMPORT MYSQL_BIN_LOG mysql_bin_log;
@@ -3860,6 +3861,23 @@ innobase_init(
ib::info() << "For Galera, using innodb_lock_schedule_algorithm=fcfs";
innodb_lock_schedule_algorithm = INNODB_LOCK_SCHEDULE_ALGORITHM_FCFS;
}
+
+ /* Print deprecation info if xtrabackup is used for SST method */
+ if (global_system_variables.wsrep_on
+ && wsrep_sst_method
+ && (!strcmp(wsrep_sst_method, "xtrabackup")
+ || !strcmp(wsrep_sst_method, "xtrabackup-v2"))) {
+ ib::info() << "Galera SST method xtrabackup is deprecated and the "
+ " support for it may be removed in future releases.";
+
+ /* We can't blindly turn on this as it will cause a
+ modification of the redo log format identifier. See
+ MDEV-13564 for more information. */
+ if (!srv_safe_truncate) {
+ ib::info() << "Requested xtrabackup based SST for Galera but"
+ << "innodb_safe_truncate is disabled.";
+ }
+ }
#endif /* WITH_WSREP */
#ifndef HAVE_LZ4