summaryrefslogtreecommitdiff
path: root/sql/mdl.cc
diff options
context:
space:
mode:
authorSeppo Jaakola <seppo.jaakola@codership.com>2013-09-30 23:14:31 +0300
committerSeppo Jaakola <seppo.jaakola@codership.com>2013-09-30 23:14:31 +0300
commit4e00dd68612806e03494921bb573de470fa3e64b (patch)
tree0bdc646064c25847133ec8f52222538b6bcc47ab /sql/mdl.cc
parent239dcdaa909cba065b9e6c83e59baef25a35eb58 (diff)
downloadmariadb-git-4e00dd68612806e03494921bb573de470fa3e64b.tar.gz
References: lp:1233353 - releasing explicit MDL locks for BF aborted transactions
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r--sql/mdl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc
index 32a4d8cbbf5..fe8efd3e6cd 100644
--- a/sql/mdl.cc
+++ b/sql/mdl.cc
@@ -2737,7 +2737,12 @@ void MDL_context::release_locks_stored_before(enum_mdl_duration duration,
DBUG_VOID_RETURN;
}
-
+#ifdef WITH_WSREP
+void MDL_context::release_explicit_locks()
+{
+ release_locks_stored_before(MDL_EXPLICIT, NULL);
+}
+#endif
/**
Release all explicit locks in the context which correspond to the
same name/object as this lock request.