diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-27 14:17:40 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-27 14:17:40 -0500 |
commit | 5b6f637caafba84457b91e08ce9c4f3fc6e8202f (patch) | |
tree | 794586ef33b74114911c450d8e9cdcdccb5d5978 /sql/sys_vars.cc | |
parent | 248c662cd7b7421f0a87c21a3903395c99c04939 (diff) | |
download | mariadb-git-5b6f637caafba84457b91e08ce9c4f3fc6e8202f.tar.gz |
MDEV-7322: Option to allow setting the binlog_format with Galera
At session scope, allow binlog_format to be changed to
values other than ROW with a warning.
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index b8c750061a6..b796b1445e4 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -287,14 +287,17 @@ static bool binlog_format_check(sys_var *self, THD *thd, set_var *var) if (WSREP(thd) && var->save_result.ulonglong_value != BINLOG_FORMAT_ROW) { - WSREP_ERROR("MariaDB Galera does not support binlog format: %s", - binlog_format_names[var->save_result.ulonglong_value]); - - // Also push a warning because error message is general. + // Push a warning to the error log. push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, ER_UNKNOWN_ERROR, "MariaDB Galera does not support binlog format: %s", binlog_format_names[var->save_result.ulonglong_value]); - return true; + + if (var->type == OPT_GLOBAL) + { + WSREP_ERROR("MariaDB Galera does not support binlog format: %s", + binlog_format_names[var->save_result.ulonglong_value]); + return true; + } } #endif |