~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 09:51:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808095116-hnodu1sdn0vezgfn
cppcheck

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
 
  return admin_table(session, tables, "analyze", TL_READ_NO_INSERT, true, &Cursor::ha_analyze);
 
2140
  thr_lock_type lock_type = TL_READ_NO_INSERT;
 
2141
 
 
2142
  return(admin_table(session, tables, "analyze", lock_type, true, &Cursor::ha_analyze));
2141
2143
}
2142
2144
 
2143
2145
 
2144
2146
bool check_table(Session* session, TableList* tables)
2145
2147
{
2146
 
  return admin_table(session, tables, "check", TL_READ_NO_INSERT, false, &Cursor::ha_check);
 
2148
  thr_lock_type lock_type = TL_READ_NO_INSERT;
 
2149
  return admin_table(session, tables, "check", lock_type, false, &Cursor::ha_check);
2147
2150
}
2148
2151
 
2149
2152
} /* namespace drizzled */