~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/benchmark/benchmarkudf.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
 
119
119
plugin::Create_function<BenchmarkFunction> *benchmarkudf= NULL;
120
120
 
121
 
static int initialize(plugin::Registry &registry)
 
121
static int initialize(plugin::Context &context)
122
122
{
123
123
  benchmarkudf= new plugin::Create_function<BenchmarkFunction>("benchmark");
124
 
  registry.add(benchmarkudf);
 
124
  context.add(benchmarkudf);
125
125
  return 0;
126
126
}
127
127
 
128
 
static int finalize(plugin::Registry &registry)
129
 
{
130
 
   registry.remove(benchmarkudf);
131
 
   delete benchmarkudf;
132
 
   return 0;
133
 
}
134
 
 
135
128
DRIZZLE_DECLARE_PLUGIN
136
129
{
137
130
  DRIZZLE_VERSION_ID,
141
134
  "Measure time for repeated calls to a function.",
142
135
  PLUGIN_LICENSE_GPL,
143
136
  initialize, /* Plugin Init */
144
 
  finalize,   /* Plugin Deinit */
145
137
  NULL,   /* system variables */
146
138
  NULL    /* config options */
147
139
}