mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03: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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user