]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: delete ::Import obj when ->done
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 1 Mar 2018 08:24:00 +0000 (08:24 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 1 Mar 2018 08:24:00 +0000 (08:24 +0000)
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.

lib/PublicInbox/V2Writable.pm

index 81c7a4d16c0189902d87fbc052ac4d26e57b1c04..0470fb0ef5a14e6fc44218585000ee337e2095a0 100644 (file)
@@ -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);
 }