~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2011-01-11 07:12:09 UTC
  • mfrom: (2068.5.6 catalogs)
  • Revision ID: brian@gir-3-20110111071209-ntbex8btgayoq00v
MergeĀ inĀ catalogs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3911
3911
 
3912
3912
bool drizzle_rm_tmp_tables()
3913
3913
{
3914
 
  Session *session;
3915
3914
 
3916
3915
  assert(drizzle_tmpdir.size());
 
3916
  Session::shared_ptr session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local());
3917
3917
 
3918
 
  if (!(session= new Session(plugin::Listen::getNullClient())))
 
3918
  if (not session)
3919
3919
    return true;
3920
 
  session->thread_stack= (char*) &session;
 
3920
  session->thread_stack= (char*) session.get();
3921
3921
  session->storeGlobals();
3922
3922
 
3923
3923
  plugin::StorageEngine::removeLostTemporaryTables(*session, drizzle_tmpdir.c_str());
3924
3924
 
3925
 
  delete session;
3926
 
 
3927
3925
  return false;
3928
3926
}
3929
3927