summaryrefslogtreecommitdiff
path: root/storage/maria/trnman.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@mysql.com>2008-12-09 14:36:51 +0200
committerMichael Widenius <monty@mysql.com>2008-12-09 14:36:51 +0200
commit7f91cf0861fb4e318b973c0fe1a2e632e9b587ea (patch)
tree1b4649926b0888af579ca8552644bf1906713c4a /storage/maria/trnman.c
parent9948682b43c8d94ca1838661dbec59466c6ef950 (diff)
parentc9a29373e154dc7fb4f60246457dbf24d6e6f3c2 (diff)
downloadmariadb-git-7f91cf0861fb4e318b973c0fe1a2e632e9b587ea.tar.gz
Merge with main Maria tree
Diffstat (limited to 'storage/maria/trnman.c')
-rw-r--r--storage/maria/trnman.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/storage/maria/trnman.c b/storage/maria/trnman.c
index f523da22291..870447db1b8 100644
--- a/storage/maria/trnman.c
+++ b/storage/maria/trnman.c
@@ -881,6 +881,7 @@ my_bool trnman_exists_active_transactions(TrID min_id, TrID max_id,
if (!trnman_is_locked)
pthread_mutex_lock(&LOCK_trn_list);
+ safe_mutex_assert_owner(&LOCK_trn_list);
for (trn= active_list_min.next; trn != &active_list_max; trn= trn->next)
{
/*
@@ -909,6 +910,7 @@ void trnman_lock()
pthread_mutex_lock(&LOCK_trn_list);
}
+
/**
unlock transaction list
*/
@@ -917,3 +919,13 @@ void trnman_unlock()
{
pthread_mutex_unlock(&LOCK_trn_list);
}
+
+
+/**
+ Is trman initialized
+*/
+
+my_bool trman_is_inited()
+{
+ return (short_trid_to_active_trn != NULL);
+}