From 5ca061e65f4f54863f2ca416d97a0f6f9ede940b Mon Sep 17 00:00:00 2001 From: Kristian Nielsen Date: Tue, 4 Aug 2015 15:35:04 +0200 Subject: [PATCH] Fix embedded server build --- sql/handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/handler.cc b/sql/handler.cc index 6d0b20e29eeb4..868a1475a7f8a 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -1582,6 +1582,7 @@ int ha_rollback_trans(THD *thd, bool all) DBUG_ASSERT(thd->transaction.stmt.ha_list == NULL || trans == &thd->transaction.stmt); +#ifdef HAVE_REPLICATION if (is_real_trans) { /* @@ -1599,6 +1600,7 @@ int ha_rollback_trans(THD *thd, bool all) if (thd->rgi_slave && thd->rgi_slave->did_mark_start_commit) thd->rgi_slave->unmark_start_commit(); } +#endif if (thd->in_sub_stmt) {