~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/plugin.cc

  • Committer: Patrick Crews
  • Date: 2011-01-29 14:17:35 UTC
  • mto: (2126.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: gleebix@gmail.com-20110129141735-3y2658vt5ur0a33o
Fixes to make test-dbqp

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
  You should have received a copy of the GNU General Public License
13
13
  along with this program; if not, write to the Free Software
14
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
 
17
17
#include "config.h"
33
33
  return archive_use_aio;
34
34
}
35
35
 
36
 
static int init(drizzled::plugin::Context &context)
 
36
static int init(drizzled::module::Context &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,   /* depends */
66
57
  NULL                        /* config options                  */
67
58
}
68
59
DRIZZLE_DECLARE_PLUGIN_END;