1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Backport fix for MDEV-7673, MDEV-7203 and MDEV-7192 from 10.0-galera

This commit is contained in:
Nirbhay Choubey
2015-03-11 12:36:00 -04:00
parent 07ff90e99b
commit 7a6cad5221
11 changed files with 198 additions and 40 deletions

View File

@ -2913,6 +2913,14 @@ case SQLCOM_PREPARE:
if (create_info.options & HA_LEX_CREATE_TMP_TABLE)
thd->variables.option_bits|= OPTION_KEEP_LOG;
#ifdef WITH_WSREP
if (WSREP(thd) &&
(!thd->is_current_stmt_binlog_format_row() ||
!(create_info.options & HA_LEX_CREATE_TMP_TABLE)))
WSREP_TO_ISOLATION_BEGIN(create_table->db, create_table->table_name,
NULL)
#endif
/*
select_create is currently not re-execution friendly and
needs to be created for every execution of a PS/SP.