1242
1242
void close_thread_tables();
1243
1243
void close_old_data_files(bool morph_locks, bool send_refresh);
1244
1244
void close_open_tables();
1245
void close_data_files_and_morph_locks(const char *db, const char *table_name);
1246
void close_tables_for_reopen(TableList **tables);
1248
/* open_and_lock_tables with derived handling */
1249
int open_and_lock_tables(TableList *tables);
1250
bool open_normal_and_derived_tables(TableList *tables, uint32_t flags);
1251
int open_tables_from_list(TableList **start, uint32_t *counter, uint32_t flags);
1252
void drop_open_table(Table *table, const char *db_name,
1253
const char *table_name);
1254
void unlink_open_table(Table *find);
1256
/* Create a lock in the cache */
1257
Table *table_cache_insert_placeholder(const char *key, uint32_t key_length);
1258
bool lock_table_name_if_not_cached(const char *db,
1259
const char *table_name, Table **table);
1261
/* Work with temporary tables */
1262
Table *find_temporary_table(TableList *table_list);
1263
Table *find_temporary_table(const char *db, const char *table_name);
1245
1264
void close_temporary_tables();
1246
void close_data_files_and_morph_locks(const char *db, const char *table_name);
1265
void close_temporary_table(Table *table, bool free_share, bool delete_table);
1266
int drop_temporary_table(TableList *table_list);
1268
/* Reopen operations */
1247
1269
bool reopen_tables(bool get_locks, bool mark_share_as_old);
1248
void close_tables_for_reopen(TableList **tables);
1270
bool reopen_name_locked_table(TableList* table_list, bool link_in);