~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/wait_for_lock.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 05:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2009.
  • Revision ID: brian@tangent.org-20101218051830-lswb13hfiqbia74o
Adding user identifier that makes use of a shared ptr to handle concurrency
issues around looking at the state of a connection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
  while (not found)
45
45
  {
46
 
    found= user_locks::Locks::getInstance().isUsed(Key(getSession().getSecurityContext(), res->c_str()), id);
 
46
    found= user_locks::Locks::getInstance().isUsed(Key(*getSession().user(), res->c_str()), id);
47
47
    if (not found)
48
48
    {
49
49
      boost::this_thread::restore_interruption dl(getSession().getThreadInterupt());