~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Brian Aker
  • Date: 2009-01-16 05:48:47 UTC
  • Revision ID: brian@tangent.org-20090116054847-vzuh1xndwn8jv4nb
Refactor for myisam specifics in handler

Show diffs side-by-side

added added

removed removed

Lines of Context:
2267
2267
  const char **ext;
2268
2268
  struct stat stat_info;
2269
2269
 
2270
 
  if (!(check_opt->sql_flags & TT_USEFRM))
 
2270
  if (!(check_opt->use_frm))
2271
2271
    return(0);
2272
2272
 
2273
2273
  if (!(table= table_list->table))              /* if open_ltable failed */
2566
2566
      /* purecov: end */
2567
2567
    }
2568
2568
 
2569
 
    if (operator_func == &handler::ha_repair &&
2570
 
        !(check_opt->sql_flags & TT_USEFRM))
 
2569
    if (operator_func == &handler::ha_repair && !(check_opt->use_frm))
2571
2570
    {
2572
2571
      if ((table->table->file->check_old_types() == HA_ADMIN_NEEDS_ALTER) ||
2573
2572
          (table->table->file->ha_check_for_upgrade(check_opt) ==
2792
2791
bool mysql_repair_table(Session* session, TableList* tables, HA_CHECK_OPT* check_opt)
2793
2792
{
2794
2793
  return(mysql_admin_table(session, tables, check_opt,
2795
 
                                "repair", TL_WRITE, 1,
2796
 
                                test(check_opt->sql_flags & TT_USEFRM),
2797
 
                                HA_OPEN_FOR_REPAIR,
2798
 
                                &prepare_for_repair,
2799
 
                                &handler::ha_repair));
 
2794
                           "repair", TL_WRITE, 1,
 
2795
                           check_opt->use_frm,
 
2796
                           HA_OPEN_FOR_REPAIR,
 
2797
                           &prepare_for_repair,
 
2798
                           &handler::ha_repair));
2800
2799
}
2801
2800
 
2802
2801
 
2803
2802
bool mysql_optimize_table(Session* session, TableList* tables, HA_CHECK_OPT* check_opt)
2804
2803
{
2805
2804
  return(mysql_admin_table(session, tables, check_opt,
2806
 
                                "optimize", TL_WRITE, 1,0,0,0,
2807
 
                                &handler::ha_optimize));
 
2805
                           "optimize", TL_WRITE, 1,0,0,0,
 
2806
                           &handler::ha_optimize));
2808
2807
}
2809
2808
 
2810
2809