mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Handle errors from external_unlock & mysql_unlock_tables
Other things: - Handler errors from ha_maria::implict_commit - Disable DBUG in safe_mutex_lock to get trace file easier to read
This commit is contained in:
@ -2359,10 +2359,11 @@ int JOIN::optimize_stage2()
|
||||
{
|
||||
/*
|
||||
Unlock all tables, except sequences, as accessing these may still
|
||||
require table updates
|
||||
require table updates. It's safe to ignore result code as all
|
||||
tables where opened for read only.
|
||||
*/
|
||||
mysql_unlock_some_tables(thd, table, const_tables,
|
||||
GET_LOCK_SKIP_SEQUENCES);
|
||||
(void) mysql_unlock_some_tables(thd, table, const_tables,
|
||||
GET_LOCK_SKIP_SEQUENCES);
|
||||
}
|
||||
if (!conds && outer_join)
|
||||
{
|
||||
|
Reference in New Issue
Block a user