~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/tableprototester/tableprototester.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
  }
103
103
 
104
104
  bool doDoesTableExist(Session& session, TableIdentifier &identifier);
 
105
 
 
106
  int doRenameTable(Session&, TableIdentifier &, TableIdentifier &)
 
107
  {
 
108
    return EPERM;
 
109
  }
105
110
};
106
111
 
107
112
 
262
267
 
263
268
static drizzled::plugin::StorageEngine *tableprototester_engine= NULL;
264
269
 
265
 
static int tableprototester_init(drizzled::plugin::Registry &registry)
 
270
static int tableprototester_init(drizzled::plugin::Context &context)
266
271
{
267
272
 
268
273
  tableprototester_engine= new TableProtoTesterEngine("TABLEPROTOTESTER");
269
 
  registry.add(tableprototester_engine);
270
 
 
271
 
  return 0;
272
 
}
273
 
 
274
 
static int tableprototester_fini(drizzled::plugin::Registry &registry)
275
 
{
276
 
  registry.remove(tableprototester_engine);
277
 
  delete tableprototester_engine;
 
274
  context.add(tableprototester_engine);
278
275
 
279
276
  return 0;
280
277
}
288
285
  "Used to test rest of server with various table proto messages",
289
286
  PLUGIN_LICENSE_GPL,
290
287
  tableprototester_init,     /* Plugin Init */
291
 
  tableprototester_fini,     /* Plugin Deinit */
292
288
  NULL,               /* system variables */
293
289
  NULL                /* config options   */
294
290
}