Commit d18ef804 authored by seppo's avatar seppo Committed by Jan Lindström

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
parent ca098107
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment