mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 01:05:30 +02:00
Fix problem where key_read was not cleaned up properly, which caused assert in innodb test.
mysql-test/r/innodb.result: Changed tests to make them repeatable. mysql-test/t/innodb.test: Changed tests to make them repeatable. sql/opt_sum.cc: Safety fix sql/sql_base.cc: Safety assert
This commit is contained in:
parent
6db41f7793
commit
34c3c02794
5 changed files with 52 additions and 30 deletions
|
|
@ -482,8 +482,9 @@ bool close_thread_table(THD *thd, TABLE **table_ptr)
|
|||
{
|
||||
DBUG_ENTER("close_thread_table");
|
||||
|
||||
bool found_old_table=0;
|
||||
TABLE *table=*table_ptr;
|
||||
bool found_old_table= 0;
|
||||
TABLE *table= *table_ptr;
|
||||
DBUG_ASSERT(table->key_read == 0);
|
||||
|
||||
*table_ptr=table->next;
|
||||
if (table->version != refresh_version ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue