mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
small cleanups
This commit is contained in:
parent
41dc186aa8
commit
f9448bcb21
2 changed files with 6 additions and 6 deletions
|
@ -6360,8 +6360,8 @@ int THD::binlog_query(THD::enum_binlog_query_type qtype, char const *query_arg,
|
|||
DBUG_PRINT("enter", ("qtype: %s query: '%-.*s'",
|
||||
show_query_type(qtype), (int) query_len, query_arg));
|
||||
|
||||
DBUG_ASSERT(query_arg &&
|
||||
(WSREP_EMULATE_BINLOG(this) || mysql_bin_log.is_open()));
|
||||
DBUG_ASSERT(query_arg);
|
||||
DBUG_ASSERT(WSREP_EMULATE_BINLOG(this) || mysql_bin_log.is_open());
|
||||
|
||||
/* If this is withing a BEGIN ... COMMIT group, don't log it */
|
||||
if (variables.option_bits & OPTION_GTID_BEGIN)
|
||||
|
|
|
@ -987,8 +987,7 @@ static bool check_master_connection(sys_var *self, THD *thd, set_var *var)
|
|||
tmp.length= var->save_result.string_value.length;
|
||||
if (!tmp.str || check_master_connection_name(&tmp))
|
||||
{
|
||||
my_error(ER_WRONG_ARGUMENTS, MYF(ME_JUST_WARNING),
|
||||
var->var->name.str);
|
||||
my_error(ER_WRONG_ARGUMENTS, MYF(0), var->var->name.str);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -4751,11 +4750,12 @@ static bool fix_wsrep_causal_reads(sys_var *self, THD* thd, enum_var_type var_ty
|
|||
return false;
|
||||
}
|
||||
static Sys_var_mybool Sys_wsrep_causal_reads(
|
||||
"wsrep_causal_reads", "(DEPRECATED) Setting this variable is equivalent "
|
||||
"wsrep_causal_reads", "Setting this variable is equivalent "
|
||||
"to setting wsrep_sync_wait READ flag",
|
||||
SESSION_VAR(wsrep_causal_reads), CMD_LINE(OPT_ARG), DEFAULT(FALSE),
|
||||
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
|
||||
ON_UPDATE(fix_wsrep_causal_reads));
|
||||
ON_UPDATE(fix_wsrep_causal_reads),
|
||||
DEPRECATED("'@@wsrep_sync_wait=1'"));
|
||||
|
||||
static Sys_var_uint Sys_wsrep_sync_wait(
|
||||
"wsrep_sync_wait", "Ensure \"synchronous\" read view before executing "
|
||||
|
|
Loading…
Reference in a new issue