~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blackhole/ha_blackhole.cc

  • Committer: Brian Aker
  • Date: 2009-06-05 18:49:23 UTC
  • mfrom: (1039.3.19 handler-cleanup)
  • Revision ID: brian@gaz-20090605184923-36mbxlsxkocuco1w
Merge Stewart, fix LOCK (it was dead, only for dead RENAME SCHEMA code), and
fixed Sun Studio failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
static const string engine_name("BLACKHOLE");
25
25
 
 
26
 
 
27
static const char *ha_blackhole_exts[] = {
 
28
  NULL
 
29
};
 
30
 
26
31
class BlackholeEngine : public StorageEngine
27
32
{
28
33
public:
33
38
  {
34
39
    return new (mem_root) ha_blackhole(this, table);
35
40
  }
 
41
 
 
42
  const char **bas_ext() const {
 
43
    return ha_blackhole_exts;
 
44
  }
 
45
 
 
46
  int createTableImpl(Session*, const char *, Table *, HA_CREATE_INFO *);
36
47
};
37
48
 
38
49
/* Static declarations for shared structures */
52
63
  :handler(engine_arg, table_arg)
53
64
{}
54
65
 
55
 
 
56
 
static const char *ha_blackhole_exts[] = {
57
 
  NULL
58
 
};
59
 
 
60
 
const char **ha_blackhole::bas_ext() const
61
 
{
62
 
  return ha_blackhole_exts;
63
 
}
64
 
 
65
 
 
66
66
uint32_t ha_blackhole::index_flags(uint32_t inx, uint32_t, bool) const
67
67
{
68
68
  return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_FULLTEXT) ?
85
85
  return(0);
86
86
}
87
87
 
88
 
int ha_blackhole::create(const char *, Table *, HA_CREATE_INFO *)
 
88
int BlackholeEngine::createTableImpl(Session*, const char *,
 
89
                                     Table *, HA_CREATE_INFO *)
89
90
{
90
91
  return(0);
91
92
}