~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/ha_archive.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 22:18:10 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410221810-06j7dfgl1iso0dab
Did the finalizers. Renamed plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
    true        Error
151
151
*/
152
152
 
153
 
int archive_db_init(Plugin_registry &registry)
 
153
int archive_db_init(PluginRegistry &registry)
154
154
{
155
155
 
156
156
  pthread_mutex_init(&archive_mutex, MY_MUTEX_INIT_FAST);
157
157
  archive_engine= new ArchiveEngine(engine_name);
158
 
  registry.registerPlugin(archive_engine);
 
158
  registry.add(archive_engine);
159
159
 
160
160
  /* When the engine starts up set the first version */
161
161
  global_version= 1;
174
174
    false       OK
175
175
*/
176
176
 
177
 
int archive_db_done(void *)
 
177
int archive_db_done(PluginRegistry &registry)
178
178
{
 
179
  registry.remove(archive_engine);
179
180
  delete archive_engine;
180
181
 
181
182
  pthread_mutex_destroy(&archive_mutex);