summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-06-12 17:23:29 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-06-12 17:23:29 +0300
commite5f8bec1c58a44cf37c0a309988a1cf12e1319bc (patch)
tree4b7700039ea7b5f90e5c9a1e1ee22c3afdc6adcb
parentcd370e8be1bccfa12d184c18e988f2d7aea975e0 (diff)
downloadmariadb-git-bb-10.1-vicentiu-merge.tar.gz
-rw-r--r--sql/sql_insert.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 4cb648961b5..e103c3b390c 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -4383,6 +4383,7 @@ bool select_create::send_eof()
*/
if (!table->s->tmp_table)
{
+#ifdef WITH_WSREP
if (WSREP_ON)
{
/*
@@ -4412,6 +4413,7 @@ bool select_create::send_eof()
/* If commit fails, we should be able to reset the OK status. */
thd->get_stmt_da()->set_overwrite_status(TRUE);
}
+#endif /* WITH_WSREP */
trans_commit_stmt(thd);
if (!(thd->variables.option_bits & OPTION_GTID_BEGIN))
trans_commit_implicit(thd);