~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: Brian Aker
  • Date: 2010-03-18 01:23:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1356.
  • Revision ID: brian@gaz-20100318012359-fga2gebt8b0nbksi
Modify ptr to reference.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
                                 const char *,
79
79
                                 const char *,
80
80
                                 const bool,
81
 
                                 message::Table *table_proto)
 
81
                                 message::Table &table_proto)
82
82
{
83
83
  string proto_path(path);
84
84
  proto_path.append(DEFAULT_FILE_EXTENSION);
88
88
    return errno;
89
89
  }
90
90
 
91
 
  if (table_proto)
92
 
  {
93
 
    if (readTableFile(proto_path, *table_proto))
94
 
      return EEXIST;
95
 
 
96
 
    return -1;
97
 
  }
98
 
 
99
 
  return EEXIST;
 
91
  if (readTableFile(proto_path, table_proto))
 
92
    return EEXIST;
 
93
 
 
94
  return -1;
100
95
}
101
96
 
102
97
void Schema::doGetTableNames(CachedDirectory &directory, string&, set<string>& set_of_names)