~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definition/cache.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 04:15:23 UTC
  • mto: (2088.1.3 merge)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117041523-o9ex94kfz1a6iqyw
Modify TableIdentifier to fit with the rest of the identifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
namespace definition {
36
36
 
37
 
table::instance::Shared::shared_ptr Cache::find(const TableIdentifier::Key &key)
 
37
table::instance::Shared::shared_ptr Cache::find(const identifier::Table::Key &key)
38
38
{
39
39
  boost::mutex::scoped_lock scopedLock(_mutex);
40
40
 
47
47
  return table::instance::Shared::shared_ptr();
48
48
}
49
49
 
50
 
void Cache::erase(const TableIdentifier::Key &key)
 
50
void Cache::erase(const identifier::Table::Key &key)
51
51
{
52
52
  boost::mutex::scoped_lock scopedLock(_mutex);
53
53
  
54
54
  cache.erase(key);
55
55
}
56
56
 
57
 
bool Cache::insert(const TableIdentifier::Key &key, table::instance::Shared::shared_ptr share)
 
57
bool Cache::insert(const identifier::Table::Key &key, table::instance::Shared::shared_ptr share)
58
58
{
59
59
  boost::mutex::scoped_lock scopedLock(_mutex);
60
60
  std::pair<Map::iterator, bool> ret=