~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/plugin.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
{
38
38
 
39
39
  archive_engine= new ArchiveEngine();
 
40
  context.registerVariable(new sys_var_bool_ptr("aio", &archive_use_aio));
40
41
  context.add(archive_engine);
41
42
 
42
43
  return false;
43
44
}
44
45
 
45
46
 
46
 
static DRIZZLE_SYSVAR_BOOL(aio, archive_use_aio,
47
 
  PLUGIN_VAR_NOCMDOPT,
48
 
  "Whether or not to use asynchronous IO.",
49
 
  NULL, NULL, true);
50
 
 
51
 
static drizzle_sys_var* archive_system_variables[]= {
52
 
  DRIZZLE_SYSVAR(aio),
53
 
  NULL
54
 
};
55
 
 
56
47
DRIZZLE_DECLARE_PLUGIN
57
48
{
58
49
  DRIZZLE_VERSION_ID,
62
53
  "Archive storage engine",
63
54
  PLUGIN_LICENSE_GPL,
64
55
  init, /* Plugin Init */
65
 
  archive_system_variables,   /* system variables                */
 
56
  NULL,   /* system variables                */
66
57
  NULL                        /* config options                  */
67
58
}
68
59
DRIZZLE_DECLARE_PLUGIN_END;