~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/function.cc

  • Committer: Brian Aker
  • Date: 2010-12-07 18:30:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1983.
  • Revision ID: brian@tangent.org-20101207183053-eg32l3701i5qvkh7
This resolves the issue where one thread may be looking at schema while
another thread could be updating it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
                                     const drizzled::SchemaIdentifier &schema_identifier,
127
127
                                     drizzled::TableIdentifier::vector &set_of_identifiers)
128
128
{
129
 
  set<string> set_of_names;
 
129
  set<std::string> set_of_names;
130
130
  drizzled::plugin::TableFunction::getNames(schema_identifier.getSchemaName(), set_of_names);
131
131
 
132
 
  for (set<string>::iterator iter= set_of_names.begin(); iter != set_of_names.end(); iter++)
 
132
  for (set<std::string>::iterator iter= set_of_names.begin(); iter != set_of_names.end(); iter++)
133
133
  {
134
134
    set_of_identifiers.push_back(TableIdentifier(schema_identifier, *iter, drizzled::message::Table::FUNCTION));
135
135
  }