~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/cache.cc

  • Committer: kalebral at gmail
  • Date: 2010-12-04 04:58:08 UTC
  • mto: (1971.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: kalebral@gmail.com-20101204045808-acto22oxfg43m02e
a few more updates of files that did not have license or had incorrect license structure

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 identifier::Table &identifier)
 
30
table::shared_ptr Cache::find(const TableIdentifier &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 identifier::Table &identifier)
 
43
void Cache::erase(const TableIdentifier &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 identifier::Table &identifier, table::shared_ptr share)
 
50
bool Cache::insert(const TableIdentifier &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 identifier::Table &identifier, drizzled::message::Table &message)
 
60
bool Cache::insert(const TableIdentifier &identifier, drizzled::message::Table &message)
61
61
{
62
62
  boost_unique_lock_t scoped_lock(_access);
63
63