perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Prime <adam.pr...@utoronto.ca>
Subject [Fwd: Re: Apache::DBI]
Date Mon, 14 Dec 2009 21:22:13 GMT
This thread is 6 months stale, but Jonathan Swartz just replied to the
RT ticket, and once again brought it to mind.

Can we please do something about this, even if that something is
re-releasing Apache::DBI 1.06 as 1.08 (as pgollucci said he was going to
do over a year and a half ago).

Thanks,

Adam



-------- Original Message --------
Subject: Re: Apache::DBI
Date: Mon, 27 Jul 2009 00:06:07 -0400
From: Adam Prime <adam.prime@utoronto.ca>
To: Fred Moyer <fred@redhotpenguin.com>
CC: dev@perl.apache.org
References: <4A65C9A1.70602@utoronto.ca>
<4A65EC64.4060804@redhotpenguin.com>	 <4A65FE8E.1020205@p6m7g8.com>
<4A6610A1.7020900@utoronto.ca>	 <4A6689E0.2030401@utoronto.ca>
<ad28918e0907220152o6cfe5272r5280d8b19f1f6161@mail.gmail.com>
<4A6708EE.7030104@utoronto.ca>

Adam Prime wrote:
> Fred Moyer wrote:
>> On Tue, Jul 21, 2009 at 8:39 PM, Adam Prime<adam.prime@utoronto.ca> wrote:
>>> Adam Prime wrote:
>>>> What I wanted to do was fix this issue:
>>>>
>>>> http://rt.cpan.org/Public/Bug/Display.html?id=36346
>> I was just looking over your original code where you connect() in
>> startup.pl.  Won't that cause issues since the database handle will be
>> forked also?  Here's what I have in my startup.pl:
> 
> The code in the ticket was just to illustrate the failure.  I ran into
> this problem because I wanted to preload a large read-only datastructure
> out of the database prior to the fork to get it completely shared
> between all the children.  The handle itself is then disconnected and
> discarded.
> 
> Adam
> 

The patch attached ads code to bail out of connect() calls called prior
to the fork by setting a package global during the ChildInit phase,
along with the other patch which was submitted to the users mailing list.

It works fine for me in extremely limited testing.

Thoughts?

Adam


Mime
View raw message