Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: share MySQL resources among threads

by renodino (Curate)
on Sep 06, 2007 at 20:19 UTC ( #637525=note: print w/ replies, xml ) Need Help??


in reply to Re^2: share MySQL resources among threads
in thread share MySQL resources among threads

Looks like another instance where the object and tied hash get DESTROYed in an odd order. Note that the DESTROY() for DBIx::Threaded::db wraps the same code in an eval{} to make it go away, so I'd suggest trying the same. Just edit your copy of Threaded.pm at line 1727 to

eval { $obj->{_inner}--; $obj->_send_simplex('DESTROY') unless $obj->{_inner}; };
and that should silence the errors.

Perl Contrarian & SQL fanboy


Comment on Re^3: share MySQL resources among threads
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://637525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2014-09-24 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls