~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Monty Taylor
  • Date: 2010-10-08 17:32:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: mordred@inaugust.com-20101008173200-iq22jo2nic48noa3
Updated pandora-build files to version 0.157

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
23
23
#include <drizzled/table.h>
24
 
#include <drizzled/table/concurrent.h>
25
24
 
26
25
namespace drizzled
27
26
{
33
32
uint32_t cached_open_tables(void);
34
33
uint32_t cached_table_definitions(void);
35
34
 
36
 
table::Cache &get_open_cache();
 
35
typedef boost::unordered_multimap< TableIdentifier::Key, Table *> TableOpenCache;
 
36
typedef std::pair< TableOpenCache::const_iterator, TableOpenCache::const_iterator > TableOpenCacheRange;
 
37
 
 
38
TableOpenCache &get_open_cache();
 
39
void remove_table(Table *arg);
37
40
 
38
41
void kill_drizzle(void);
39
42
 
132
135
                               const char *table_name);
133
136
TableList *unique_table(TableList *table, TableList *table_list,
134
137
                        bool check_alias= false);
 
138
void remove_db_from_cache(const SchemaIdentifier &schema_identifier);
135
139
 
136
 
/* bits for last argument to table::Cache::singleton().removeTable() */
 
140
/* bits for last argument to remove_table_from_cache() */
137
141
#define RTFC_NO_FLAG                0x0000
138
142
#define RTFC_OWNED_BY_Session_FLAG      0x0001
139
143
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
140
144
#define RTFC_CHECK_KILLED_FLAG      0x0004
 
145
bool remove_table_from_cache(Session *session, TableIdentifier &identifier, uint32_t flags);
141
146
 
142
147
void mem_alloc_error(size_t size);
143
148