mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2004, 2012, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2018, MariaDB
|
||||
Copyright (c) 2010, 2021, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -647,8 +647,13 @@ end:
|
||||
thd->lex->spname->m_name.str, static_cast<uint>(thd->lex->spname->m_name.length));
|
||||
}
|
||||
|
||||
if (mdl_request_for_trn.ticket)
|
||||
thd->mdl_context.release_lock(mdl_request_for_trn.ticket);
|
||||
/* In Locked_tables_list::reopen_tables(),
|
||||
MDL_context::set_transaction_duration_for_all_locks() may have been invoked,
|
||||
converting our explicit MDL to transaction scope. In that case, we will not
|
||||
release the lock, to avoid a debug assertion failure. */
|
||||
if (MDL_ticket *ticket= mdl_request_for_trn.ticket)
|
||||
if (thd->mdl_context.has_explicit_locks())
|
||||
thd->mdl_context.release_lock(ticket);
|
||||
|
||||
DBUG_RETURN(result);
|
||||
|
||||
|
Reference in New Issue
Block a user