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
Table *open_ltable(TableList *table_list, thr_lock_type lock_type);
1253
Table *open_table(TableList *table_list, bool *refresh, uint32_t flags);
1254
void unlink_open_table(Table *find);
1255
void drop_open_table(Table *table, const char *db_name,
1256
const char *table_name);
1257
void close_cached_table(Table *table);
1259
/* Create a lock in the cache */
1260
Table *table_cache_insert_placeholder(const char *key, uint32_t key_length);
1261
bool lock_table_name_if_not_cached(const char *db,
1262
const char *table_name, Table **table);
1264
/* Work with temporary tables */
1265
Table *find_temporary_table(TableList *table_list);
1266
Table *find_temporary_table(const char *db, const char *table_name);
1245
1267
void close_temporary_tables();
1246
void close_data_files_and_morph_locks(const char *db, const char *table_name);
1268
void close_temporary_table(Table *table, bool free_share, bool delete_table);
1269
int drop_temporary_table(TableList *table_list);
1271
/* Reopen operations */
1247
1272
bool reopen_tables(bool get_locks, bool mark_share_as_old);
1248
void close_tables_for_reopen(TableList **tables);
1273
bool reopen_name_locked_table(TableList* table_list, bool link_in);
1275
void wait_for_condition(pthread_mutex_t *mutex, pthread_cond_t *cond);