revision-id: 40f6bcb856ce05e15efd3070663af2686182147d (mariadb-galera-10.0.35-16-g40f6bcb856c) parent(s): 9b29bda0d67ab15299659c9ad4046ab4f5ca7b6a author: Jan Lindström committer: Jan Lindström timestamp: 2018-08-02 20:35:44 +0300 message: Add missing WSREP(thd) condition and remove unnecessary DBUG_RETURN. --- sql/sql_alter.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sql/sql_alter.cc b/sql/sql_alter.cc index 1129b209775..0bf2d4be2ad 100644 --- a/sql/sql_alter.cc +++ b/sql/sql_alter.cc @@ -308,7 +308,8 @@ bool Sql_cmd_alter_table::execute(THD *thd) #ifdef WITH_WSREP TABLE *find_temporary_table(THD *thd, const TABLE_LIST *tl); - if ((!thd->is_current_stmt_binlog_format_row() || + if (WSREP(thd) && + (!thd->is_current_stmt_binlog_format_row() || !find_temporary_table(thd, first_table))) { WSREP_TO_ISOLATION_BEGIN_ALTER(((lex->name.str) ? select_lex->db : NULL), @@ -329,8 +330,6 @@ bool Sql_cmd_alter_table::execute(THD *thd) lex->ignore); DBUG_RETURN(result); - - DBUG_RETURN(result); #ifdef WITH_WSREP error: {