summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-06-23 16:46:12 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-06-23 16:46:12 -0400
commit70714d3597ec9ffa742cc9e173d4ad32f294cc51 (patch)
treecff4572a50b569fbeefc2e5682916e917de7552d /sql/wsrep_mysqld.cc
parent46024098be1d7887134a3a3d8d289dd7711c56dc (diff)
parent71d1f35847a575239deff856590bf6f13afd74ed (diff)
downloadmariadb-git-70714d3597ec9ffa742cc9e173d4ad32f294cc51.tar.gz
Merge branch '5.5-galera' into 10.0-galera
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 16424f4ffd2..f90efc94c73 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1461,10 +1461,21 @@ void wsrep_to_isolation_end(THD *thd)
gra->wsrep_exec_mode, gra->wsrep_query_state, gra->wsrep_conflict_state, \
gra->get_command(), gra->lex->sql_command, gra->query());
+/**
+ Check if request for the metadata lock should be granted to the requester.
+
+ @param requestor_ctx The MDL context of the requestor
+ @param ticket MDL ticket for the requested lock
+
+ @retval TRUE Lock request can be granted
+ @retval FALSE Lock request cannot be granted
+*/
+
bool
wsrep_grant_mdl_exception(MDL_context *requestor_ctx,
MDL_ticket *ticket
) {
+ /* Fallback to the non-wsrep behaviour */
if (!WSREP_ON) return FALSE;
THD *request_thd = requestor_ctx->wsrep_get_thd();