~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

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