Commit 881a62af authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur

Fix Session lock management (references #LEMONLDAP-742)



git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@3514 1dbb9719-a921-0410-b57f-c3a383c2c641
parent e3a4805d
......@@ -53,28 +53,14 @@ sub acquire_write_lock {
my $self = shift;
my $session = shift;
# Get session from cache
my $id = $session->{data}->{_session_id};
if ( $self->cache->get($id) ) {
# got session from cache, no need to ask for locks
}
else {
$self->module->acquire_write_lock($session);
}
$self->module->acquire_write_lock($session);
}
sub release_write_lock {
my $self = shift;
my $session = shift;
# Get session from cache
my $id = $session->{data}->{_session_id};
if ( $self->cache->get($id) ) {
# got session from cache, no need to ask for locks
}
else {
$self->module->release_write_lock($session);
}
$self->module->release_write_lock($session);
}
sub release_all_locks {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment