summaryrefslogtreecommitdiff
path: root/sql/transaction.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2016-09-08 22:41:50 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2016-09-08 22:41:50 +0200
commit1f2ff25eba6c089b2698cd0dab96155ccbf2afd2 (patch)
tree5e0f148caaca148a0d9b7b25365c5c177b5fc1e5 /sql/transaction.cc
parenteffb65bc863da0f1115e16ef5f11d11a13cdc7a0 (diff)
downloadmariadb-git-1f2ff25eba6c089b2698cd0dab96155ccbf2afd2.tar.gz
Fixed embedded server.
Diffstat (limited to 'sql/transaction.cc')
-rw-r--r--sql/transaction.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/transaction.cc b/sql/transaction.cc
index d728ea25b65..9bacfb81bba 100644
--- a/sql/transaction.cc
+++ b/sql/transaction.cc
@@ -38,6 +38,9 @@ static void trans_track_end_trx(THD *thd)
thd->session_tracker.get_tracker(TRANSACTION_INFO_TRACKER))->end_trx(thd);
}
}
+#else
+#define trans_track_end_trx(A) do{}while(0)
+#endif //EMBEDDED_LIBRARY
/**
@@ -46,6 +49,7 @@ static void trans_track_end_trx(THD *thd)
*/
void trans_reset_one_shot_chistics(THD *thd)
{
+#ifndef EMBEDDED_LIBRARY
if (thd->variables.session_track_transaction_info > TX_TRACK_NONE)
{
Transaction_state_tracker *tst= (Transaction_state_tracker *)
@@ -54,13 +58,10 @@ void trans_reset_one_shot_chistics(THD *thd)
tst->set_read_flags(thd, TX_READ_INHERIT);
tst->set_isol_level(thd, TX_ISOL_INHERIT);
}
-
+#endif //EMBEDDED_LIBRARY
thd->tx_isolation= (enum_tx_isolation) thd->variables.tx_isolation;
thd->tx_read_only= thd->variables.tx_read_only;
}
-#else
-#define trans_track_end_trx(A) do{}while(0)
-#endif //EMBEDDED_LIBRARY
/* Conditions under which the transaction state must not change. */
static bool trans_check(THD *thd)