~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-08-05 08:23:47 UTC
  • mfrom: (1109.1.6 merge)
  • Revision ID: brian@gaz-20090805082347-j2l9604jru68iu7s
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1400
1400
   * 
1401
1401
   * The lock will automaticaly be freed by close_thread_tables()
1402
1402
   */
1403
 
  int open_and_lock_tables(TableList *tables);
 
1403
  bool openTablesLock(TableList *tables);
 
1404
 
1404
1405
  /**
1405
1406
   * Open all tables in list and process derived tables
1406
1407
   *
1419
1420
   * This is to be used on prepare stage when you don't read any
1420
1421
   * data from the tables.
1421
1422
   */
1422
 
  bool open_normal_and_derived_tables(TableList *tables, uint32_t flags);
1423
 
  int open_tables_from_list(TableList **start, uint32_t *counter, uint32_t flags);
1424
 
  Table *open_ltable(TableList *table_list, thr_lock_type lock_type);
1425
 
  Table *open_table(TableList *table_list, bool *refresh, uint32_t flags);
 
1423
  bool openTables(TableList *tables, uint32_t flags= 0);
 
1424
 
 
1425
  int open_tables_from_list(TableList **start, uint32_t *counter, uint32_t flags= 0);
 
1426
 
 
1427
  Table *openTableLock(TableList *table_list, thr_lock_type lock_type);
 
1428
  Table *openTable(TableList *table_list, bool *refresh, uint32_t flags= 0);
 
1429
 
1426
1430
  void unlink_open_table(Table *find);
1427
1431
  void drop_open_table(Table *table, const char *db_name,
1428
1432
                       const char *table_name);
1438
1442
  Table *find_temporary_table(const char *db, const char *table_name);
1439
1443
  void close_temporary_tables();
1440
1444
  void close_temporary_table(Table *table, bool free_share, bool delete_table);
 
1445
  void close_temporary(Table *table, bool free_share, bool delete_table);
1441
1446
  int drop_temporary_table(TableList *table_list);
 
1447
  bool rm_temporary_table(StorageEngine *base, char *path);
 
1448
  Table *open_temporary_table(const char *path, const char *db,
 
1449
                              const char *table_name, bool link_in_list,
 
1450
                              open_table_mode open_mode);
1442
1451
  
1443
1452
  /* Reopen operations */
1444
1453
  bool reopen_tables(bool get_locks, bool mark_share_as_old);
1445
1454
  bool reopen_name_locked_table(TableList* table_list, bool link_in);
 
1455
  bool close_cached_tables(TableList *tables, bool wait_for_refresh, bool wait_for_placeholders);
1446
1456
 
1447
1457
  void wait_for_condition(pthread_mutex_t *mutex, pthread_cond_t *cond);
 
1458
  int setup_conds(TableList *leaves, COND **conds);
 
1459
  int lock_tables(TableList *tables, uint32_t count, bool *need_reopen);
1448
1460
};
1449
1461
 
1450
1462
class JOIN;