~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Brian Aker
  • Date: 2009-11-24 02:06:37 UTC
  • mfrom: (1223.1.7 push)
  • Revision ID: brian@gaz-20091124020637-9gb65vj98x1arydm
MergeĀ forĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1083
1083
  rewriting the meta file. Currently it does this by calling optimize with
1084
1084
  the extended flag.
1085
1085
*/
1086
 
int ha_archive::repair(Session* session, HA_CHECK_OPT* check_opt)
 
1086
int ha_archive::repair(Session* session)
1087
1087
{
1088
 
  check_opt->flags= T_EXTEND;
1089
 
  int rc= optimize(session, check_opt);
 
1088
  int rc= optimize(session);
1090
1089
 
1091
1090
  if (rc)
1092
1091
    return(HA_ERR_CRASHED_ON_REPAIR);
1099
1098
  The table can become fragmented if data was inserted, read, and then
1100
1099
  inserted again. What we do is open up the file and recompress it completely.
1101
1100
*/
1102
 
int ha_archive::optimize(Session *, HA_CHECK_OPT *)
 
1101
int ha_archive::optimize(Session *)
1103
1102
{
1104
1103
  int rc= 0;
1105
1104
  azio_stream writer;
1368
1367
  Simple scan of the tables to make sure everything is ok.
1369
1368
*/
1370
1369
 
1371
 
int ha_archive::check(Session* session, HA_CHECK_OPT *)
 
1370
int ha_archive::check(Session* session)
1372
1371
{
1373
1372
  int rc= 0;
1374
1373
  const char *old_proc_info;