~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/plugin.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-20 15:31:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1907.
  • Revision ID: andrew@linuxjedi.co.uk-20101020153127-w9djuz9omzezg2kz
Add error message for global sort buffer constraint

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));
41
40
  context.add(archive_engine);
42
41
 
43
42
  return false;
44
43
}
45
44
 
46
45
 
 
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
 
47
56
DRIZZLE_DECLARE_PLUGIN
48
57
{
49
58
  DRIZZLE_VERSION_ID,
53
62
  "Archive storage engine",
54
63
  PLUGIN_LICENSE_GPL,
55
64
  init, /* Plugin Init */
56
 
  NULL,   /* depends */
 
65
  archive_system_variables,   /* system variables                */
57
66
  NULL                        /* config options                  */
58
67
}
59
68
DRIZZLE_DECLARE_PLUGIN_END;