~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

Fix pass by reference for directory object

Show diffs side-by-side

added added

removed removed

Lines of Context:
757
757
  return file;
758
758
}
759
759
 
760
 
void plugin::StorageEngine::doGetTableNames(CachedDirectory &directory, string&, set<string> *set_of_names)
 
760
void plugin::StorageEngine::doGetTableNames(CachedDirectory &directory, string&, set<string>& set_of_names)
761
761
{
762
762
  CachedDirectory::Entries entries= directory.getEntries();
763
763
 
782
782
      file_name_len= filename_to_tablename(filename->c_str(), uname, sizeof(uname));
783
783
      // TODO: Remove need for memory copy here
784
784
      uname[file_name_len - sizeof(".dfe") + 1]= '\0'; // Subtract ending, place NULL 
785
 
      set_of_names->insert(uname);
 
785
      set_of_names.insert(uname);
786
786
    }
787
787
  }
788
788
}
791
791
  : public unary_function<plugin::StorageEngine *, void>
792
792
{
793
793
  string db;
794
 
  set<string> *set_of_names;
795
794
  CachedDirectory& directory;
 
795
  set<string>& set_of_names;
796
796
 
797
797
public:
798
798
 
799
799
  AddTableName(CachedDirectory& directory_arg, string& database_name, set<string>& of_names) :
800
 
    directory(directory_arg)
 
800
    directory(directory_arg),
 
801
    set_of_names(of_names)
801
802
  {
802
 
    set_of_names= &of_names;
803
803
    db= database_name;
804
804
  }
805
805