~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Brian Aker
  • Date: 2009-03-27 22:55:28 UTC
  • mto: This revision was merged to the branch mainline in revision 968.
  • Revision ID: brian@tangent.org-20090327225528-8y76cfx8a4oemqv9
Remove ref_count

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
    return(NULL);
517
517
 
518
518
  *plugin= pi;
519
 
  pi->ref_count++;
520
519
 
521
520
  return(plugin);
522
521
}
602
601
      tmp.plugin= plugin;
603
602
      tmp.name.str= (char *)plugin->name;
604
603
      tmp.name.length= name_len;
605
 
      tmp.ref_count= 0;
606
604
      tmp.isInited= false;
607
605
      if (!test_plugin_options(tmp_root, &tmp, argc, argv))
608
606
      {
806
804
        assert(!global_system_variables.table_plugin);
807
805
        global_system_variables.table_plugin=
808
806
          intern_plugin_lock(NULL, plugin_int_to_ref(plugin_ptr));
809
 
        assert(plugin_ptr->ref_count == 1);
810
807
      }
811
808
    }
812
809
  }
858
855
  Plugin_registry registry= Plugin_registry::get_plugin_registry();
859
856
 
860
857
  tmp->isInited= false;
861
 
  tmp->ref_count= 0;
862
858
  tmp->plugin_dl= 0;
863
859
 
864
860
  if (insert_dynamic(&plugin_array, (unsigned char*)&tmp))