@@ -1533,7 +1533,7 @@ void MDL_lock::Ticket_list::add_ticket(MDL_ticket *ticket)
1533
1533
DBUG_ASSERT (ticket->get_lock ());
1534
1534
#ifdef WITH_WSREP
1535
1535
if ((this == &(ticket->get_lock ()->m_waiting )) &&
1536
- wsrep_thd_is_BF ((void *)(ticket->get_ctx ()->wsrep_get_thd ()), false ))
1536
+ wsrep_thd_is_BF ((void *)(ticket->get_ctx ()->get_thd ()), false ))
1537
1537
{
1538
1538
Ticket_iterator itw (ticket->get_lock ()->m_waiting );
1539
1539
Ticket_iterator itg (ticket->get_lock ()->m_granted );
@@ -1544,11 +1544,11 @@ void MDL_lock::Ticket_list::add_ticket(MDL_ticket *ticket)
1544
1544
1545
1545
while ((waiting= itw++) && !added)
1546
1546
{
1547
- if (!wsrep_thd_is_BF ((void *)(waiting->get_ctx ()->wsrep_get_thd ()), true ))
1547
+ if (!wsrep_thd_is_BF ((void *)(waiting->get_ctx ()->get_thd ()), true ))
1548
1548
{
1549
1549
WSREP_DEBUG (" MDL add_ticket inserted before: %lu %s" ,
1550
- wsrep_thd_thread_id (waiting->get_ctx ()->wsrep_get_thd ()),
1551
- wsrep_thd_query (waiting->get_ctx ()->wsrep_get_thd ()));
1550
+ wsrep_thd_thread_id (waiting->get_ctx ()->get_thd ()),
1551
+ wsrep_thd_query (waiting->get_ctx ()->get_thd ()));
1552
1552
/* Insert the ticket before the first non-BF waiting thd. */
1553
1553
m_list.insert_after (prev, ticket);
1554
1554
added= true ;
@@ -1949,12 +1949,12 @@ MDL_lock::can_grant_lock(enum_mdl_type type_arg,
1949
1949
ticket->is_incompatible_when_granted (type_arg))
1950
1950
#ifdef WITH_WSREP
1951
1951
{
1952
- if (wsrep_thd_is_BF ((void *)(requestor_ctx->wsrep_get_thd ()),false ) &&
1952
+ if (wsrep_thd_is_BF ((void *)(requestor_ctx->get_thd ()),false ) &&
1953
1953
key.mdl_namespace () == MDL_key::GLOBAL)
1954
1954
{
1955
1955
WSREP_DEBUG (" global lock granted for BF: %lu %s" ,
1956
- wsrep_thd_thread_id (requestor_ctx->wsrep_get_thd ()),
1957
- wsrep_thd_query (requestor_ctx->wsrep_get_thd ()));
1956
+ wsrep_thd_thread_id (requestor_ctx->get_thd ()),
1957
+ wsrep_thd_query (requestor_ctx->get_thd ()));
1958
1958
can_grant = true ;
1959
1959
}
1960
1960
else if (!wsrep_grant_mdl_exception (requestor_ctx, ticket, &key))
@@ -1990,12 +1990,12 @@ MDL_lock::can_grant_lock(enum_mdl_type type_arg,
1990
1990
#ifdef WITH_WSREP
1991
1991
else
1992
1992
{
1993
- if (wsrep_thd_is_BF ((void *)(requestor_ctx->wsrep_get_thd ()), false ) &&
1993
+ if (wsrep_thd_is_BF ((void *)(requestor_ctx->get_thd ()), false ) &&
1994
1994
key.mdl_namespace () == MDL_key::GLOBAL)
1995
1995
{
1996
1996
WSREP_DEBUG (" global lock granted for BF (waiting queue): %lu %s" ,
1997
- wsrep_thd_thread_id (requestor_ctx->wsrep_get_thd ()),
1998
- wsrep_thd_query (requestor_ctx->wsrep_get_thd ()));
1997
+ wsrep_thd_thread_id (requestor_ctx->get_thd ()),
1998
+ wsrep_thd_query (requestor_ctx->get_thd ()));
1999
1999
can_grant = true ;
2000
2000
}
2001
2001
}
0 commit comments