~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 12:51:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808125119-qcrkgv0frmxk03rn
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
2137
2137
 
2138
2138
bool analyze_table(Session* session, TableList* tables)
2139
2139
{
2140
 
  thr_lock_type lock_type = TL_READ_NO_INSERT;
2141
 
 
2142
 
  return(admin_table(session, tables, "analyze", lock_type, true, &Cursor::ha_analyze));
 
2140
  return admin_table(session, tables, "analyze", TL_READ_NO_INSERT, true, &Cursor::ha_analyze);
2143
2141
}
2144
2142
 
2145
2143
 
2146
2144
bool check_table(Session* session, TableList* tables)
2147
2145
{
2148
 
  thr_lock_type lock_type = TL_READ_NO_INSERT;
2149
 
  return admin_table(session, tables, "check", lock_type, false, &Cursor::ha_check);
 
2146
  return admin_table(session, tables, "check", TL_READ_NO_INSERT, false, &Cursor::ha_check);
2150
2147
}
2151
2148
 
2152
2149
} /* namespace drizzled */