Skip to content

Commit 1a34a56

Browse files
author
Jan Lindström
committed
Fix incorrect merge
1 parent 8da8c60 commit 1a34a56

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

sql/mysqld.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10136,14 +10136,6 @@ void init_server_psi_keys(void)
1013610136
count= array_elements(com_statement_info);
1013710137
mysql_statement_register(category, com_statement_info, count);
1013810138

10139-
#ifdef WITH_WSREP /* WSREP AFTER SE */
10140-
if (wsrep_recovery)
10141-
{
10142-
select_thread_in_use= 0;
10143-
wsrep_recover();
10144-
unireg_abort(0);
10145-
}
10146-
#endif /* WITH_WSREP */
1014710139
/*
1014810140
When a new packet is received,
1014910141
it is instrumented as "statement/com/".

sql/sql_parse.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,6 +3244,12 @@ case SQLCOM_PREPARE:
32443244
/* So that CREATE TEMPORARY TABLE gets to binlog at commit/rollback */
32453245
if (create_info.tmp_table())
32463246
thd->variables.option_bits|= OPTION_KEEP_LOG;
3247+
#ifdef WITH_WSREP
3248+
if (!thd->is_current_stmt_binlog_format_row() ||
3249+
!(create_info.options & HA_LEX_CREATE_TMP_TABLE))
3250+
WSREP_TO_ISOLATION_BEGIN(create_table->db, create_table->table_name,
3251+
NULL)
3252+
#endif /* WITH_WSREP */
32473253
/* regular create */
32483254
if (create_info.options & HA_LEX_CREATE_TABLE_LIKE)
32493255
{
@@ -3253,12 +3259,6 @@ case SQLCOM_PREPARE:
32533259
}
32543260
else
32553261
{
3256-
#ifdef WITH_WSREP
3257-
if (!thd->is_current_stmt_binlog_format_row() ||
3258-
!(create_info.options & HA_LEX_CREATE_TMP_TABLE))
3259-
WSREP_TO_ISOLATION_BEGIN(create_table->db, create_table->table_name,
3260-
NULL)
3261-
#endif /* WITH_WSREP */
32623262
/* Regular CREATE TABLE */
32633263
res= mysql_create_table(thd, create_table,
32643264
&create_info, &alter_info);

0 commit comments

Comments
 (0)