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

« back to all changes in this revision

Viewing changes to plugin/session_dictionary/dictionary.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:
25
25
 
26
26
static ProcesslistTool *processlist;
27
27
 
28
 
static int init(drizzled::plugin::Registry &registry)
 
28
static int init(drizzled::plugin::Context &context)
29
29
{
30
30
  processlist= new(std::nothrow)ProcesslistTool;
31
 
  registry.add(processlist);
 
31
  context.add(processlist);
32
32
  
33
33
  return 0;
34
34
}
35
35
 
36
 
static int finalize(drizzled::plugin::Registry &registry)
37
 
{
38
 
  registry.remove(processlist);
39
 
  delete processlist;
40
 
 
41
 
  return 0;
42
 
}
43
 
 
44
36
DRIZZLE_DECLARE_PLUGIN
45
37
{
46
38
  DRIZZLE_VERSION_ID,
50
42
  "Dictionary for session information, aka proccesslist, etc.",
51
43
  PLUGIN_LICENSE_GPL,
52
44
  init,
53
 
  finalize,
54
45
  NULL,
55
46
  NULL
56
47
}