Skip Menu |
 

This queue is for tickets about the Apache-Session CPAN distribution.

Report information
The Basics
Id: 54892
Status: open
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.81
Fixed in: (no value)



MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 360
Download (untitled) / with headers
text/plain 360b
Apache::Session::Lock::MySQL has this: my $sth = $self->{dbh}->prepare_cached(q{SELECT GET_LOCK(?, 3600)}, {}, 1); $sth->execute($self->{lockid}); It does not, however, fetch from sth, so you do not know if you obtained a lock . My understanding of GET_LOCK() is that it returns 0 or 1 (or null on error) depending on whether you got the lock or not.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-12682-1268349966-934.54892-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 514
Download (untitled) / with headers
text/plain 514b
On Mon Feb 22 17:36:41 2010, DOUGW wrote: Show quoted text
> Apache::Session::Lock::MySQL has this: > my $sth = $self->{dbh}->prepare_cached(q{SELECT GET_LOCK(?, 3600)}, > {}, 1); > $sth->execute($self->{lockid}); > > It does not, however, fetch from sth, so you do not know if you obtained > a lock . My understanding of GET_LOCK() is that it returns 0 or 1 (or > null on error) depending on whether you got the lock or not.
I suppose with a timeout of one hour, it's not likely the connection will survive that long...


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.