From: Eric Wong (Contractor, The Linux Foundation) Date: Thu, 1 Mar 2018 08:24:00 +0000 (+0000) Subject: v2writable: delete ::Import obj when ->done X-Git-Tag: v1.1.0-pre1~204 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bd685483847b50cf5d01bd10ffca8c7e8bd4cd33;p=public-inbox.git v2writable: delete ::Import obj when ->done As with the ::Import class this wraps, we want this to be usable as a checkpoint and be able to call ->add afterwards. We'll be relying on ->done to flush changes through all partition and skeleton DBs for deduplication checks. --- diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 81c7a4d1..0470fb0e 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -115,7 +115,7 @@ sub remove { sub done { my ($self) = @_; - my $im = $self->{im}; + my $im = delete $self->{im}; $im->done if $im; # PublicInbox::Import::done $self->searchidx_checkpoint(0); }