~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/release_barrier.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:
39
39
  }
40
40
 
41
41
 
42
 
  drizzled::identifier::User::const_shared_ptr user_identifier(getSession().user());
43
 
 
44
 
  barriers::return_t result= Barriers::getInstance().release(Key(*user_identifier, res->c_str()), getSession().getSessionId());
 
42
  barriers::return_t result= Barriers::getInstance().release(Key(getSession().getSecurityContext(), res->c_str()), getSession().getSessionId());
45
43
 
46
44
  switch (result)
47
45
  {
57
55
 
58
56
        return 0;
59
57
      }
60
 
      list->erase(Key(*user_identifier, res->c_str()));
 
58
      list->erase(Key(getSession().getSecurityContext(), res->c_str()));
61
59
      null_value= false;
62
60
 
63
61
      return 1;