mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-15149 Assert upon concurrent creating / querying sequences
Problem was that sequence_insert closed and reopened the like table without proper locking. Fixed by ensuring that the like table is not reopened in sequence_insert
This commit is contained in:
@ -460,6 +460,7 @@ static TABLE *tc_acquire_table(THD *thd, TDC_element *element)
|
||||
void tc_release_table(TABLE *table)
|
||||
{
|
||||
uint32 i= table->instance;
|
||||
DBUG_ENTER("tc_release_table");
|
||||
DBUG_ASSERT(table->in_use);
|
||||
DBUG_ASSERT(table->file);
|
||||
|
||||
@ -478,6 +479,7 @@ void tc_release_table(TABLE *table)
|
||||
tc[i].free_tables.push_back(table);
|
||||
mysql_mutex_unlock(&tc[i].LOCK_table_cache);
|
||||
}
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user