~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2010-11-27 13:38:27 UTC
  • mfrom: (1955.1.3 quick)
  • Revision ID: brian@tangent.org-20101127133827-fowoi26sizq1zneg
Rollup of staging, mostly UDL

Show diffs side-by-side

added added

removed removed

Lines of Context:
716
716
  table that was locked with LOCK TABLES.
717
717
*/
718
718
 
719
 
void Session::drop_open_table(Table *table, const TableIdentifier &identifier)
 
719
void Session::drop_open_table(Table *table, TableIdentifier &identifier)
720
720
{
721
721
  if (table->getShare()->getType())
722
722
  {
730
730
      that something has happened.
731
731
    */
732
732
    unlink_open_table(table);
733
 
    plugin::StorageEngine::dropTable(*this, identifier);
 
733
    quick_rm_table(*this, identifier);
734
734
  }
735
735
}
736
736
 
833
833
  @retval  true   Error occured (OOM)
834
834
  @retval  false  Success. 'table' parameter set according to above rules.
835
835
*/
836
 
bool Session::lock_table_name_if_not_cached(const TableIdentifier &identifier, Table **table)
 
836
bool Session::lock_table_name_if_not_cached(TableIdentifier &identifier, Table **table)
837
837
{
838
838
  const TableIdentifier::Key &key(identifier.getKey());
839
839
 
1222
1222
  the strings are used in a loop even after the share may be freed.
1223
1223
*/
1224
1224
 
1225
 
void Session::close_data_files_and_morph_locks(const TableIdentifier &identifier)
 
1225
void Session::close_data_files_and_morph_locks(TableIdentifier &identifier)
1226
1226
{
1227
1227
  safe_mutex_assert_owner(table::Cache::singleton().mutex().native_handle()); /* Adjust locks at the end of ALTER TABLEL */
1228
1228
 
1834
1834
#  Table object
1835
1835
*/
1836
1836
 
1837
 
Table *Open_tables_state::open_temporary_table(const TableIdentifier &identifier,
 
1837
Table *Open_tables_state::open_temporary_table(TableIdentifier &identifier,
1838
1838
                                               bool link_in_list)
1839
1839
{
1840
1840
  assert(identifier.isTmp());
1842
1842
 
1843
1843
  table::Temporary *new_tmp_table= new table::Temporary(identifier.getType(),
1844
1844
                                                        identifier,
1845
 
                                                        const_cast<char *>(const_cast<TableIdentifier&>(identifier).getPath().c_str()),
 
1845
                                                        const_cast<char *>(identifier.getPath().c_str()),
1846
1846
                                                        static_cast<uint32_t>(identifier.getPath().length()));
1847
1847
  if (not new_tmp_table)
1848
1848
    return NULL;