~stewart/drizzle/embedded-innodb-rnd-read

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:09:42 UTC
  • mfrom: (1310.1.38)
  • Revision ID: stewart@flamingspork.com-20100330130942-859uivdm20p36sk3
Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
 
327
327
static Logging_query *handler= NULL;
328
328
 
329
 
static int logging_query_plugin_init(drizzled::plugin::Registry &registry)
 
329
static int logging_query_plugin_init(drizzled::plugin::Context &context)
330
330
{
331
331
  handler= new Logging_query();
332
 
  registry.add(handler);
333
 
 
334
 
  return 0;
335
 
}
336
 
 
337
 
static int logging_query_plugin_deinit(drizzled::plugin::Registry &registry)
338
 
{
339
 
  registry.remove(handler);
340
 
  delete handler;
 
332
  context.add(handler);
341
333
 
342
334
  return 0;
343
335
}
424
416
  N_("Log queries to a CSV file"),
425
417
  PLUGIN_LICENSE_GPL,
426
418
  logging_query_plugin_init,
427
 
  logging_query_plugin_deinit,
428
419
  logging_query_system_variables,
429
420
  NULL
430
421
}