~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:54 UTC
  • mfrom: (1283.28.32)
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100330131054-9l6wuqylf7eae9i0
Merged embedded-innodb-position-rnd-pos into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
  */
286
286
  if (archive_write_open == true)
287
287
    (void)azclose(&archive_write);
 
288
  pthread_mutex_destroy(&archive_mutex);
288
289
}
289
290
 
290
291
bool ArchiveShare::prime(uint64_t *auto_increment)
1321
1322
  return;
1322
1323
}
1323
1324
 
 
1325
int ArchiveEngine::doRenameTable(Session&, TableIdentifier &from, TableIdentifier &to)
 
1326
{
 
1327
  int error= 0;
 
1328
 
 
1329
  for (const char **ext= bas_ext(); *ext ; ext++)
 
1330
  {
 
1331
    if (rename_file_ext(from.getPath().c_str(), to.getPath().c_str(), *ext))
 
1332
    {
 
1333
      if ((error=errno) != ENOENT)
 
1334
        break;
 
1335
      error= 0;
 
1336
    }
 
1337
  }
 
1338
 
 
1339
  return error;
 
1340
}
 
1341
 
1324
1342
bool ArchiveEngine::doDoesTableExist(Session&,
1325
1343
                                     TableIdentifier &identifier)
1326
1344
{