~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
    The following admin table operations are allowed
130
130
    on log tables.
131
131
  */
132
 
  sql_command_flags[SQLCOM_REPAIR]=           CF_WRITE_LOGS_COMMAND;
133
132
  sql_command_flags[SQLCOM_OPTIMIZE]=         CF_WRITE_LOGS_COMMAND;
134
133
  sql_command_flags[SQLCOM_ANALYZE]=          CF_WRITE_LOGS_COMMAND;
135
134
}
825
824
    res = mysql_checksum_table(session, first_table, &lex->check_opt);
826
825
    break;
827
826
  }
828
 
  case SQLCOM_REPAIR:
829
 
  {
830
 
    assert(first_table == all_tables && first_table != 0);
831
 
    res= mysql_repair_table(session, first_table, &lex->check_opt);
832
 
    /* ! we write after unlocking the table */
833
 
    /*
834
 
      Presumably, REPAIR and binlog writing doesn't require synchronization
835
 
    */
836
 
    write_bin_log(session, true, session->query, session->query_length);
837
 
    select_lex->table_list.first= (unsigned char*) first_table;
838
 
    lex->query_tables=all_tables;
839
 
    break;
840
 
  }
841
827
  case SQLCOM_CHECK:
842
828
  {
843
829
    assert(first_table == all_tables && first_table != 0);