summaryrefslogtreecommitdiff
path: root/sql/transaction.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-01-31 15:04:37 +0100
committerSergei Golubchik <serg@mariadb.org>2015-01-31 21:51:45 +0100
commit863cfb3fa5153e7754279324ba7e66a4cfdac805 (patch)
treea1eac5e06bb16f03703f03d40cfb203646e49c0b /sql/transaction.cc
parentb050354ffb15e4e27498b169ec723da4d8aa8da6 (diff)
downloadmariadb-git-863cfb3fa5153e7754279324ba7e66a4cfdac805.tar.gz
small cleanup, remove a useless function
Diffstat (limited to 'sql/transaction.cc')
-rw-r--r--sql/transaction.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/transaction.cc b/sql/transaction.cc
index 3628790aa63..22e3ad7f87c 100644
--- a/sql/transaction.cc
+++ b/sql/transaction.cc
@@ -24,7 +24,6 @@
#include "rpl_handler.h"
#include "debug_sync.h" // DEBUG_SYNC
#include "sql_acl.h"
-#include "log.h" // for assert_LOCK_log_owner
/* Conditions under which the transaction state must not change. */
static bool trans_check(THD *thd)
@@ -234,9 +233,8 @@ bool trans_commit(THD *thd)
DBUG_PRINT("info", ("clearing SERVER_STATUS_IN_TRANS"));
res= ha_commit_trans(thd, TRUE);
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
- assert_LOCK_log_owner(false);
+ mysql_mutex_assert_not_owner(mysql_bin_log.get_log_lock());
mysql_mutex_assert_not_owner(&LOCK_after_binlog_sync);
mysql_mutex_assert_not_owner(&LOCK_commit_ordered);
@@ -441,9 +439,8 @@ bool trans_commit_stmt(THD *thd)
}
}
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
- assert_LOCK_log_owner(false);
+ mysql_mutex_assert_not_owner(mysql_bin_log.get_log_lock());
mysql_mutex_assert_not_owner(&LOCK_after_binlog_sync);
mysql_mutex_assert_not_owner(&LOCK_commit_ordered);