~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/benchmark/benchmarkudf.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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(module::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
}