~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Monty Taylor
  • Date: 2009-04-08 03:20:31 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 979.
  • Revision ID: mordred@inaugust.com-20090408032031-hwb47ug03xfwfuge
Remove most of plugin_ref. Fix several leaks (where the malloc was happening but never freed). One step away from no more plugin_ref. Yippee. It's so much easier the second time you try to do this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3044
3044
      {
3045
3045
        LEX_STRING engine_name= { (char*)table.engine().name().c_str(),
3046
3046
                                 strlen(table.engine().name().c_str()) };
3047
 
        plugin_ref plugin= ha_resolve_by_name(session, &engine_name);
 
3047
        st_plugin_int *plugin= ha_resolve_by_name(session, &engine_name);
3048
3048
        if(plugin)
3049
 
          args.engine= plugin_data(plugin,StorageEngine *);
 
3049
          args.engine= static_cast<StorageEngine *>(plugin->data);
3050
3050
      }
3051
3051
    }
3052
3052
  }