MDEV-18552 MDEV-18699 allowing SR only in galera 4 cluster (#1293)

Streaming replication must be allowed only in a cluster, where all nodes
have  Galera 4 capability
This commit is contained in:
seppo 2019-05-03 10:13:32 +03:00 committed by Jan Lindström
parent ca098107a2
commit d18ef804bb

View File

@ -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;
}