~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/information_engine/information_engine.h

  • Committer: Brian Aker
  • Date: 2009-11-12 16:49:34 UTC
  • Revision ID: brian@gaz-20091112164934-5uy9u71ozc2aussg
Fixes startup failures when temporary tables were left behind in a crash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <mysys/thr_lock.h>
22
22
#include <drizzled/plugin/info_schema_table.h>
23
23
 
 
24
static const char *information_exts[] = {
 
25
  NULL
 
26
};
 
27
 
 
28
 
24
29
class InformationEngine : public drizzled::plugin::StorageEngine
25
30
{
26
31
public:
126
131
                    HA_CREATE_INFO&,
127
132
                    drizzled::message::Table&)
128
133
  {
129
 
    return 1;
 
134
    return EPERM;
130
135
  }
131
136
 
132
137
  int doDropTable(Session&, const std::string) 
133
138
  { 
134
 
    return 0; 
 
139
    return EPERM; 
135
140
  }
136
141
 
137
142
  virtual Cursor *create(TableShare &table, MEM_ROOT *mem_root);
138
143
 
139
144
  const char **bas_ext() const 
140
145
  {
141
 
    return NULL;
 
146
    return information_exts;
142
147
  }
143
148
 
144
149
  void doGetTableNames(CachedDirectory&,