~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <drizzled/execute.h>
35
35
 
36
36
#include <drizzled/internal/my_sys.h>
 
37
#include <drizzled/cached_directory.h>
37
38
 
38
39
#include <fcntl.h>
39
40
#include <sys/stat.h>
110
111
         iter != schema_cache.end();
111
112
         iter++)
112
113
    {
113
 
      set_of_names.push_back(identifier::Schema((*iter).second->name()));
 
114
      set_of_names.push_back(identifier::Schema(iter->second->name()));
114
115
    }
115
116
  }
116
117
  mutex.unlock_shared();
124
125
  if (iter != schema_cache.end())
125
126
  {
126
127
    drizzled::message::schema::shared_ptr schema_message;
127
 
    schema_message= (*iter).second;
 
128
    schema_message= iter->second;
128
129
    mutex.unlock_shared();
129
130
 
130
131
    return schema_message;