~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/cache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-28 14:09:50 UTC
  • mfrom: (2207 bootstrap)
  • mto: (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2210.
  • Revision ID: olafvdspek@gmail.com-20110228140950-2nu0hyzhuww3wssx
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
table::shared_ptr Cache::find(const identifier::Table &identifier)
30
30
{
31
31
  boost_unique_lock_t scoped_lock(_access);
32
 
  if (Map::mapped_type* i= find_ptr(cache, identifier.getKey()))
33
 
    return *i;
 
32
  if (Map::mapped_type* ptr= find_ptr(cache, identifier.getKey()))
 
33
    return *ptr;
34
34
  return table::shared_ptr();
35
35
}
36
36