~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 * session object.
79
79
 */
80
80
 
81
 
class DRIZZLED_API Session : public Open_tables_state
 
81
class DRIZZLED_API Session : private Open_tables_state
82
82
{
83
83
private:
84
84
  class impl_c;
1271
1271
   *
1272
1272
   * The lock will automaticaly be freed by close_thread_tables()
1273
1273
   */
1274
 
  bool openTablesLock(TableList *tables);
1275
 
  Table *open_temporary_table(const drizzled::identifier::Table &identifier, bool link_in_list= true);
 
1274
  void close_temporary_table(Table*);
 
1275
  int drop_temporary_table(const identifier::Table&);
 
1276
  bool openTablesLock(TableList*);
 
1277
  bool rm_temporary_table(plugin::StorageEngine&, const identifier::Table&);
 
1278
  bool rm_temporary_table(const identifier::Table &identifier, bool best_effort= false);
 
1279
  Table *open_temporary_table(const identifier::Table &identifier, bool link_in_list= true);
1276
1280
 
1277
1281
  int open_tables_from_list(TableList **start, uint32_t *counter, uint32_t flags= 0);
1278
1282
 
1346
1350
 
1347
1351
  bool arg_of_last_insert_id_function; // Tells if LAST_INSERT_ID(#) was called for the current statement
1348
1352
private:
 
1353
  void close_temporary_tables();
1349
1354
  bool free_cached_table(boost::mutex::scoped_lock &scopedLock);
 
1355
  void nukeTable(Table*);
1350
1356
  drizzled::util::Storable* getProperty0(const std::string&);
1351
1357
  void setProperty0(const std::string&, drizzled::util::Storable*);
1352
1358