about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-01 08:24:00 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-01 08:24:00 +0000
commitbd685483847b50cf5d01bd10ffca8c7e8bd4cd33 (patch)
treeda62aa945a707f361465832b722042d3bd0b7412 /lib
parentaae578aad0fd1c7b788a461fa29cb70f0a29fb02 (diff)
downloadpublic-inbox-bd685483847b50cf5d01bd10ffca8c7e8bd4cd33.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/V2Writable.pm2
1 files changed, 1 insertions, 1 deletions
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);
 }