~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Brian Aker
  • Date: 2009-04-06 23:21:25 UTC
  • mto: This revision was merged to the branch mainline in revision 976.
  • Revision ID: brian@gaz-20090406232125-pfh5thw54drisx0h
LCOV cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
 
463
463
 
464
464
 
465
 
static SHOW_COMP_OPTION plugin_status(const LEX_STRING *name, int type)
466
 
{
467
 
  Plugin_registry registry= Plugin_registry::get_plugin_registry();
468
 
 
469
 
  SHOW_COMP_OPTION rc= SHOW_OPTION_NO;
470
 
  struct st_plugin_int *plugin;
471
 
 
472
 
  if (! initialized)
473
 
    return(rc);
474
 
 
475
 
  if ((plugin= registry.find(name, type)))
476
 
  {
477
 
    rc= SHOW_OPTION_DISABLED;
478
 
    if (plugin->isInited)
479
 
      rc= SHOW_OPTION_YES;
480
 
  }
481
 
  return(rc);
482
 
}
483
 
 
484
 
 
485
 
bool plugin_is_ready(const LEX_STRING *name, int type)
486
 
{
487
 
  bool rc= false;
488
 
  if (plugin_status(name, type) == SHOW_OPTION_YES)
489
 
    rc= true;
490
 
  return rc;
491
 
}
492
 
 
493
 
 
494
 
SHOW_COMP_OPTION sys_var_have_plugin::get_option()
495
 
{
496
 
  LEX_STRING plugin_name= { (char *) plugin_name_str, plugin_name_len };
497
 
  return plugin_status(&plugin_name, plugin_type);
498
 
}
499
 
 
500
 
 
501
465
static plugin_ref intern_plugin_lock(st_plugin_int *rc)
502
466
{
503
467
  plugin_ref plugin;