~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Brian Aker
  • Date: 2010-10-21 08:55:44 UTC
  • mto: (1866.1.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1867.
  • Revision ID: brian@tangent.org-20101021085544-chpce06zm4tdaqdi
This creates a function for seeing which catalog you are in. It also
refactors some of the functions to be in the utility_function collect.

Show diffs side-by-side

added added

removed removed

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