~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 04:15:23 UTC
  • mto: (2088.1.3 merge)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117041523-o9ex94kfz1a6iqyw
Modify TableIdentifier to fit with the rest of the identifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
}
132
132
 
133
133
 
134
 
int ArchiveEngine::doDropTable(Session&, const TableIdentifier &identifier)
 
134
int ArchiveEngine::doDropTable(Session&, const identifier::Table &identifier)
135
135
{
136
136
  string new_path(identifier.getPath());
137
137
 
148
148
}
149
149
 
150
150
int ArchiveEngine::doGetTableDefinition(Session&,
151
 
                                        const TableIdentifier &identifier,
 
151
                                        const identifier::Table &identifier,
152
152
                                        drizzled::message::Table &table_proto)
153
153
{
154
154
  struct stat stat_info;
413
413
  Init out lock.
414
414
  We open the file we will read from.
415
415
*/
416
 
int ha_archive::doOpen(const TableIdentifier &identifier, int , uint32_t )
 
416
int ha_archive::doOpen(const identifier::Table &identifier, int , uint32_t )
417
417
{
418
418
  int rc= 0;
419
419
  share= get_share(identifier.getPath().c_str(), &rc);
499
499
 
500
500
int ArchiveEngine::doCreateTable(Session &,
501
501
                                 Table& table_arg,
502
 
                                 const drizzled::TableIdentifier &identifier,
 
502
                                 const drizzled::identifier::Table &identifier,
503
503
                                 drizzled::message::Table& proto)
504
504
{
505
505
  int error= 0;
1247
1247
  }
1248
1248
}
1249
1249
 
1250
 
int ArchiveEngine::doRenameTable(Session&, const TableIdentifier &from, const TableIdentifier &to)
 
1250
int ArchiveEngine::doRenameTable(Session&, const identifier::Table &from, const identifier::Table &to)
1251
1251
{
1252
1252
  int error= 0;
1253
1253
 
1265
1265
}
1266
1266
 
1267
1267
bool ArchiveEngine::doDoesTableExist(Session&,
1268
 
                                     const TableIdentifier &identifier)
 
1268
                                     const identifier::Table &identifier)
1269
1269
{
1270
1270
  string proto_path(identifier.getPath());
1271
1271
  proto_path.append(ARZ);
1280
1280
 
1281
1281
void ArchiveEngine::doGetTableIdentifiers(drizzled::CachedDirectory &directory,
1282
1282
                                          const drizzled::identifier::Schema &schema_identifier,
1283
 
                                          drizzled::TableIdentifier::vector &set_of_identifiers)
 
1283
                                          drizzled::identifier::Table::vector &set_of_identifiers)
1284
1284
{
1285
1285
  drizzled::CachedDirectory::Entries entries= directory.getEntries();
1286
1286
 
1302
1302
      char uname[NAME_LEN + 1];
1303
1303
      uint32_t file_name_len;
1304
1304
 
1305
 
      file_name_len= TableIdentifier::filename_to_tablename(filename->c_str(), uname, sizeof(uname));
 
1305
      file_name_len= identifier::Table::filename_to_tablename(filename->c_str(), uname, sizeof(uname));
1306
1306
      // TODO: Remove need for memory copy here
1307
1307
      uname[file_name_len - sizeof(ARZ) + 1]= '\0'; // Subtract ending, place NULL 
1308
1308
 
1309
 
      set_of_identifiers.push_back(TableIdentifier(schema_identifier, uname));
 
1309
      set_of_identifiers.push_back(identifier::Table(schema_identifier, uname));
1310
1310
    }
1311
1311
  }
1312
1312
}