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

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.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:
290
290
 
291
291
static LoggingGearman *handler= NULL;
292
292
 
293
 
static int logging_gearman_plugin_init(plugin::Registry &registry)
 
293
static int logging_gearman_plugin_init(plugin::Context &context)
294
294
{
295
295
  handler= new LoggingGearman();
296
 
  registry.add(handler);
297
 
 
298
 
  return 0;
299
 
}
300
 
 
301
 
static int logging_gearman_plugin_deinit(plugin::Registry &registry)
302
 
{
303
 
  registry.remove(handler);
304
 
  delete handler;
 
296
  context.add(handler);
305
297
 
306
298
  return 0;
307
299
}
349
341
    N_("Log queries to a Gearman server"),
350
342
    PLUGIN_LICENSE_GPL,
351
343
    logging_gearman_plugin_init,
352
 
    logging_gearman_plugin_deinit,
353
344
    logging_gearman_system_variables,
354
345
    NULL
355
346
}