~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-06-09 01:59:10 UTC
  • mfrom: (1054.1.11 merge)
  • Revision ID: brian@gaz-20090609015910-0sfsovp2x8wfbr2c
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);
 
1247
 
 
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);
 
1258
 
 
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);
 
1263
 
 
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);
 
1270
  
 
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);
 
1274
 
 
1275
  void wait_for_condition(pthread_mutex_t *mutex, pthread_cond_t *cond);
1249
1276
};
1250
1277
 
1251
1278
/*