~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/is_free_lock.cc

  • Committer: Brian Aker
  • Date: 2010-10-13 02:49:48 UTC
  • mto: This revision was merged to the branch mainline in revision 1853.
  • Revision ID: brian@tangent.org-20101013024948-xwel5qe6z7j21w73
Cleans up namespace for locks (now per user).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    return 0;
41
41
 
42
42
  drizzled::session_id_t id= getSession().getSessionId();
43
 
  bool result= user_locks::Locks::getInstance().release(std::string(res->c_str()), id);
 
43
  bool result= user_locks::Locks::getInstance().release(user_locks::Key(getSession().getSecurityContext(), res->c_str()), id);
44
44
 
45
45
  return result ? 1 : 0;
46
46
}