~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/plugin.cc

  • Committer: Brian Aker
  • Date: 2010-03-17 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1354.
  • Revision ID: brian@gaz-20100317191840-9ro7fajqp6lhaqjo
Update, we now have all of the ANSI INFORMATION_SCHEMA listed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  return archive_use_aio;
34
34
}
35
35
 
36
 
static int init(drizzled::plugin::Context &context)
 
36
static int init(drizzled::plugin::Registry &registry)
37
37
{
38
38
 
39
39
  archive_engine= new ArchiveEngine();
40
 
  context.add(archive_engine);
 
40
  registry.add(archive_engine);
41
41
 
42
42
  return false;
43
43
}
44
44
 
 
45
/*
 
46
  Release the archive Cursor.
 
47
 
 
48
  SYNOPSIS
 
49
    archive_db_done()
 
50
    void
 
51
 
 
52
  RETURN
 
53
    false       OK
 
54
*/
 
55
 
 
56
extern pthread_mutex_t archive_mutex;
 
57
 
 
58
static int done(drizzled::plugin::Registry &registry)
 
59
{
 
60
  registry.remove(archive_engine);
 
61
  delete archive_engine;
 
62
 
 
63
  pthread_mutex_destroy(&archive_mutex);
 
64
 
 
65
  return 0;
 
66
}
 
67
 
45
68
 
46
69
static DRIZZLE_SYSVAR_BOOL(aio, archive_use_aio,
47
70
  PLUGIN_VAR_NOCMDOPT,
62
85
  "Archive storage engine",
63
86
  PLUGIN_LICENSE_GPL,
64
87
  init, /* Plugin Init */
 
88
  done, /* Plugin Deinit */
65
89
  archive_system_variables,   /* system variables                */
66
90
  NULL                        /* config options                  */
67
91
}