~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: Brian Aker
  • Date: 2010-06-29 21:22:35 UTC
  • Revision ID: brian@gaz-20100629212235-egrke8446lndm2iz
This adds const to SchemaIdentifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
  }
131
131
}
132
132
 
133
 
bool Schema::doGetSchemaDefinition(SchemaIdentifier &schema_identifier, message::Schema &schema_message)
 
133
bool Schema::doGetSchemaDefinition(const SchemaIdentifier &schema_identifier, message::Schema &schema_message)
134
134
{
135
135
  if (not pthread_rwlock_rdlock(&schema_lock))
136
136
  {
181
181
  return true;
182
182
}
183
183
 
184
 
bool Schema::doDropSchema(SchemaIdentifier &schema_identifier)
 
184
bool Schema::doDropSchema(const SchemaIdentifier &schema_identifier)
185
185
{
186
186
  message::Schema schema_message;
187
187
 
260
260
 
261
261
  @note we do the rename to make it crash safe.
262
262
*/
263
 
bool Schema::writeSchemaFile(SchemaIdentifier &schema_identifier, const message::Schema &db)
 
263
bool Schema::writeSchemaFile(const SchemaIdentifier &schema_identifier, const message::Schema &db)
264
264
{
265
265
  char schema_file_tmp[FN_REFLEN];
266
266
  string schema_file(schema_identifier.getPath());
373
373
}
374
374
 
375
375
void Schema::doGetTableIdentifiers(drizzled::CachedDirectory&,
376
 
                                   drizzled::SchemaIdentifier&,
 
376
                                   const drizzled::SchemaIdentifier&,
377
377
                                   drizzled::TableIdentifiers&)
378
378
{
379
379
}