~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/release_barrier.cc

  • Committer: Muhammad Umair
  • Date: 2011-08-16 11:47:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2402.
  • Revision ID: umair@remotedesk-20110816114729-w6x88fj0sow4g3z9
mergeĀ lp:~mumair/drizzle/drizzle-IPv6Address

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
22
 
#include "plugin/user_locks/module.h"
23
 
#include "plugin/user_locks/barrier_storage.h"
 
21
#include <config.h>
 
22
#include <plugin/user_locks/module.h>
 
23
#include <plugin/user_locks/barrier_storage.h>
24
24
 
25
25
#include <string>
26
26
 
39
39
  }
40
40
 
41
41
 
42
 
  drizzled::identifier::User::const_shared_ptr user_identifier(getSession().user());
 
42
  drizzled::identifier::user::ptr user_identifier(getSession().user());
43
43
 
44
44
  barriers::return_t result= Barriers::getInstance().release(Key(*user_identifier, res->c_str()), getSession().getSessionId());
45
45
 
48
48
  default:
49
49
  case barriers::SUCCESS:
50
50
    {
51
 
      Storable *list= static_cast<Storable *>(getSession().getProperty(property_key));
 
51
      Storable *list= getSession().getProperty<Storable>(property_key);
52
52
      assert(list);
53
53
      if (not list) // We should have been the owner if it was passed to us, this should never happen
54
54
      {