~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/cache.cc

  • Committer: Brian Aker
  • Date: 2010-11-19 00:00:46 UTC
  • mto: (1945.2.1 quick)
  • mto: This revision was merged to the branch mainline in revision 1944.
  • Revision ID: brian@tangent.org-20101119000046-iajnd847tmo595ts
Fix style issue around table for message (though this is imperfect,...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
namespace message {
29
29
 
30
 
TablePtr Cache::find(const TableIdentifier &identifier)
 
30
table::shared_ptr Cache::find(const TableIdentifier &identifier)
31
31
{
32
32
  boost_unique_lock_t scoped_lock(_access);
33
33
 
37
37
    return (*iter).second;
38
38
  }
39
39
 
40
 
  return TablePtr();
 
40
  return table::shared_ptr();
41
41
}
42
42
 
43
43
void Cache::erase(const TableIdentifier &identifier)
47
47
  cache.erase(identifier.getKey());
48
48
}
49
49
 
50
 
bool Cache::insert(const TableIdentifier &identifier, TablePtr 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
 
61
61
{
62
62
  boost_unique_lock_t scoped_lock(_access);
63
63
 
64
 
  TablePtr share;
 
64
  table::shared_ptr share;
65
65
  share.reset(new message::Table(message));
66
66
 
67
67
  std::pair<Map::iterator, bool> ret=