summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseppo <seppo.jaakola@iki.fi>2019-05-03 10:13:32 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2019-05-03 10:13:32 +0300
commitd18ef804bb5d9d473055a2fdc04f74e175a8e9cd (patch)
tree41ed867eb503de76a5c57675b1bf940a9b961ba5
parentca098107a26872b818a96bd753ab2aeb2cd1ccdf (diff)
downloadmariadb-git-bb-10.4-collapse.tar.gz
MDEV-18552 MDEV-18699 allowing SR only in galera 4 cluster (#1293)bb-10.4-collapse
Streaming replication must be allowed only in a cluster, where all nodes have Galera 4 capability
-rw-r--r--sql/wsrep_var.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index d73daf7c9f8..288d4cdf134 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -679,6 +679,14 @@ bool wsrep_trx_fragment_size_check (sys_var *self, THD* thd, set_var* var)
return true;
}
+ if (wsrep_protocol_version < 4 && new_trx_fragment_size > 0) {
+ push_warning (thd, Sql_condition::WARN_LEVEL_WARN,
+ ER_WRONG_VALUE_FOR_VAR,
+ "Cannot set 'wsrep_trx_fragment_size' to a value other than "
+ "0 because cluster is not yet operating in Galera 4 mode.");
+ return true;
+ }
+
return false;
}