mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 20:25:32 +02:00
sql/slave.cc
fixed typo in the error message
sql/sql_base.cc
fixed bugs in reopen_name_locked_table() after talking to Monty
added a test case for restore + select
sql/slave.cc:
fixed typo in the error message
sql/sql_base.cc:
fixed bugs in reopen_name_locked_table() after talking to Monty
This commit is contained in:
parent
de3381459b
commit
725bccc0fc
3 changed files with 68 additions and 3 deletions
|
|
@ -866,13 +866,15 @@ TABLE *reopen_name_locked_table(THD* thd, TABLE_LIST* table_list)
|
|||
}
|
||||
|
||||
table->key_length=key_length;
|
||||
table->version=refresh_version;
|
||||
table->flush_version=flush_version;
|
||||
table->version=0;
|
||||
table->flush_version=0;
|
||||
if (!key_cache_inited)
|
||||
ha_key_cache();
|
||||
table->in_use = thd;
|
||||
check_unused();
|
||||
pthread_mutex_unlock(&LOCK_open);
|
||||
table->next = thd->open_tables;
|
||||
thd->open_tables = table;
|
||||
table->tablenr=thd->current_tablenr++;
|
||||
table->used_fields=0;
|
||||
table->const_table=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue