~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

Split StorageEngine into slot. This completes the plugin-slot-reorg. Woot.
Next step - getting slot registration to inject a plugin reference into a
registry so that we can make I_S.PLUGINS stop being broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
static int heap_init(drizzled::plugin::Registry &registry)
91
91
{
92
92
  heap_storage_engine= new HeapEngine(engine_name);
93
 
  registry.add(heap_storage_engine);
 
93
  registry.storage_engine.add(heap_storage_engine);
94
94
  pthread_mutex_init(&THR_LOCK_heap, MY_MUTEX_INIT_FAST);
95
95
  return 0;
96
96
}
97
97
 
98
98
static int heap_deinit(drizzled::plugin::Registry &registry)
99
99
{
100
 
  registry.remove(heap_storage_engine);
 
100
  registry.storage_engine.remove(heap_storage_engine);
101
101
  delete heap_storage_engine;
102
102
 
103
103
  int ret= hp_panic(HA_PANIC_CLOSE);