~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/cache.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 23:44:48 UTC
  • mfrom: (2088.1.5 drizzle-build)
  • Revision ID: brian@tangent.org-20110117234448-0tt6rd6fxa3csdaf
Rollup of all changes for identifier/error

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
namespace message {
29
29
 
30
 
table::shared_ptr Cache::find(const TableIdentifier &identifier)
 
30
table::shared_ptr Cache::find(const identifier::Table &identifier)
31
31
{
32
32
  boost_unique_lock_t scoped_lock(_access);
33
33
 
40
40
  return table::shared_ptr();
41
41
}
42
42
 
43
 
void Cache::erase(const TableIdentifier &identifier)
 
43
void Cache::erase(const identifier::Table &identifier)
44
44
{
45
45
  boost_unique_lock_t scoped_lock(_access);
46
46
  
47
47
  cache.erase(identifier.getKey());
48
48
}
49
49
 
50
 
bool Cache::insert(const TableIdentifier &identifier, table::shared_ptr share)
 
50
bool Cache::insert(const identifier::Table &identifier, table::shared_ptr share)
51
51
{
52
52
  boost_unique_lock_t scoped_lock(_access);
53
53
 
57
57
  return ret.second;
58
58
}
59
59
 
60
 
bool Cache::insert(const TableIdentifier &identifier, drizzled::message::Table &message)
 
60
bool Cache::insert(const identifier::Table &identifier, drizzled::message::Table &message)
61
61
{
62
62
  boost_unique_lock_t scoped_lock(_access);
63
63