Skip to content

Commit f9448bc

Browse files
committed
small cleanups
1 parent 41dc186 commit f9448bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sql/sql_class.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6360,8 +6360,8 @@ int THD::binlog_query(THD::enum_binlog_query_type qtype, char const *query_arg,
63606360
DBUG_PRINT("enter", ("qtype: %s query: '%-.*s'",
63616361
show_query_type(qtype), (int) query_len, query_arg));
63626362

6363-
DBUG_ASSERT(query_arg &&
6364-
(WSREP_EMULATE_BINLOG(this) || mysql_bin_log.is_open()));
6363+
DBUG_ASSERT(query_arg);
6364+
DBUG_ASSERT(WSREP_EMULATE_BINLOG(this) || mysql_bin_log.is_open());
63656365

63666366
/* If this is withing a BEGIN ... COMMIT group, don't log it */
63676367
if (variables.option_bits & OPTION_GTID_BEGIN)

sql/sys_vars.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,8 +987,7 @@ static bool check_master_connection(sys_var *self, THD *thd, set_var *var)
987987
tmp.length= var->save_result.string_value.length;
988988
if (!tmp.str || check_master_connection_name(&tmp))
989989
{
990-
my_error(ER_WRONG_ARGUMENTS, MYF(ME_JUST_WARNING),
991-
var->var->name.str);
990+
my_error(ER_WRONG_ARGUMENTS, MYF(0), var->var->name.str);
992991
return true;
993992
}
994993
return false;
@@ -4751,11 +4750,12 @@ static bool fix_wsrep_causal_reads(sys_var *self, THD* thd, enum_var_type var_ty
47514750
return false;
47524751
}
47534752
static Sys_var_mybool Sys_wsrep_causal_reads(
4754-
"wsrep_causal_reads", "(DEPRECATED) Setting this variable is equivalent "
4753+
"wsrep_causal_reads", "Setting this variable is equivalent "
47554754
"to setting wsrep_sync_wait READ flag",
47564755
SESSION_VAR(wsrep_causal_reads), CMD_LINE(OPT_ARG), DEFAULT(FALSE),
47574756
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
4758-
ON_UPDATE(fix_wsrep_causal_reads));
4757+
ON_UPDATE(fix_wsrep_causal_reads),
4758+
DEPRECATED("'@@wsrep_sync_wait=1'"));
47594759

47604760
static Sys_var_uint Sys_wsrep_sync_wait(
47614761
"wsrep_sync_wait", "Ensure \"synchronous\" read view before executing "

0 commit comments

Comments
 (0)