~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.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:
305
305
 
306
306
  pthread_mutex_init(&archive_mutex, MY_MUTEX_INIT_FAST);
307
307
  archive_engine= new ArchiveEngine(engine_name);
308
 
  registry.add(archive_engine);
 
308
  registry.storage_engine.add(archive_engine);
309
309
 
310
310
  /* When the engine starts up set the first version */
311
311
  global_version= 1;
326
326
 
327
327
static int archive_db_done(drizzled::plugin::Registry &registry)
328
328
{
329
 
  registry.remove(archive_engine);
 
329
  registry.storage_engine.remove(archive_engine);
330
330
  delete archive_engine;
331
331
 
332
332
  pthread_mutex_destroy(&archive_mutex);