~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-06-15 13:37:26 UTC
  • Revision ID: brian@gaz-20100615133726-160z0ql8gxi8s3rg
This is a rollup set of patches for modifications to TableIdentifier to have
a getKey() which is now used for open_cache and table_share_def cache. This
also includes additional unittests on TableIdentifier, and makes use of some
cleanup, though not perfect, to TableShare for its contructors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2013
2013
  return true;
2014
2014
}
2015
2015
 
2016
 
TableShareInstance *Session::getTemporaryShare()
2017
 
{
2018
 
  temporary_shares.push_back(new TableShareInstance()); // This will not go into the tableshare cache, so no key is used.
2019
 
 
2020
 
  TableShareInstance *tmp_share= temporary_shares.back();
2021
 
 
2022
 
  assert(tmp_share);
2023
 
 
2024
 
  return tmp_share;
2025
 
}
2026
 
 
2027
 
TableShareInstance *Session::getTemporaryShare(const char *tmpname_arg)
2028
 
{
2029
 
  assert(tmpname_arg);
2030
 
 
2031
 
  temporary_shares.push_back(new TableShareInstance(tmpname_arg)); // This will not go into the tableshare cache, so no key is used.
 
2016
TableShareInstance *Session::getTemporaryShare(TableIdentifier::Type type_arg)
 
2017
{
 
2018
  temporary_shares.push_back(new TableShareInstance(type_arg)); // This will not go into the tableshare cache, so no key is used.
2032
2019
 
2033
2020
  TableShareInstance *tmp_share= temporary_shares.back();
2034
2021