Argh, another thing I didn't know about iThreads: CLONE will run for every
package defining *or inheriting* it. Sigh...
undef;
}
- sub CLONE {
+ sub DBIx::Class::__DBI_Storage_iThreads_handler__::CLONE {
# As per DBI's recommendation, DBIC disconnects all handles as
# soon as possible (DBIC will reconnect only on demand from within
# the thread)
return $self;
}
- sub CLONE {
+ sub DBIx::Class::__DBI_Cursor_iThreads_handler__::CLONE {
for (keys %cursor_registry) {
# once marked we no longer care about them, hence no
# need to keep in the registry, left alone renumber the
{
my $destruction_registry = {};
- sub CLONE {
+ sub DBIx::Class::__Util_iThreads_handler__::CLONE {
%$destruction_registry = map {
(defined $_)
? ( refaddr($_) => $_ )
}
# Regenerate the slots names on a thread spawn
-sub CLONE {
+sub DBICTest::__LeakTracer_iThreads_handler__::CLONE {
my @individual_regs = grep { scalar keys %{$_||{}} } values %reg_of_regs;
%reg_of_regs = ();