Re: mod_perl and global %Live_Objects not being initialized

[prev] [thread] [next] [Date index for 2004/11/16]

From: Andy Grundman
Subject: Re: mod_perl and global %Live_Objects not being initialized
Date: 18:13 on 16 Nov 2004
Tim Bunce wrote:
> 
> 
> This sounds like a problem that I fixed in a patch I posted around June 24.
> The relevant parts for you may be:
> 
> --- Class-DBI-0.96-live_object_key/lib/Class/DBI/Relationship.pm        Sun Apr 25 16:33:36 2004
> +++ Class-DBI-0.96/lib/Class/DBI/Relationship.pm        Thu Jun 24 11:24:34 2004
> @@ -20,6 +20,7 @@
>         my $proto = shift;
>         my $name  = shift;
>         my ($class, $accessor, $foreign_class, $args) = $proto->remap_arguments(@_);
> +       $class->clear_object_index;
>         return $proto->new({
>                         name          => $name,
>                         class         => $class,
> 
> --- Class-DBI-0.96-live_object_key/lib/Class/DBI.pm     Thu Jun 24 10:29:31 2004
> +++ Class-DBI-0.96/lib/Class/DBI.pm     Thu Jun 24 11:57:21 2004
> @@ -737,6 +748,7 @@
>  sub delete {
>         my $self = shift;
>         return $self->_search_delete(@_) if not ref $self;
> +       $self->remove_from_object_index;
>         $self->call_trigger('before_delete');
> 
>         eval { $self->sql_DeleteMe->execute($self->id) };
> 

Thanks Tim.  What prompted the patch?  Were you seeing some bad data 
related to the index too?

-Andy

(message missing)

Re: mod_perl and global %Live_Objects not being initialized
Andy Grundman 18:13 on 16 Nov 2004

Re: mod_perl and global %Live_Objects not being initialized
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 03:02 on 19 Nov 2004

Generated at 17:31 on 15 Feb 2005 by mariachi v0.52