From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 343EB2141D for ; Fri, 11 Jan 2019 04:10:11 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/7] v2writable: cleanup processes when done Date: Fri, 11 Jan 2019 04:10:06 +0000 Message-Id: <20190111041008.24361-6-e@80x24.org> In-Reply-To: <20190111041008.24361-1-e@80x24.org> References: <20190111041008.24361-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Otherwise, Perl may exit successfully when a failure code is desired. --- lib/PublicInbox/V2Writable.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 970244e..ec28e51 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -291,6 +291,7 @@ sub purge_oids { my $git = PublicInbox::Git->new($git_dir); my $im = $self->import_init($git, 0, 1); $purges->[$i] = $im->purge_oids($purge); + $im->done; } $purges; } @@ -499,6 +500,7 @@ sub done { delete $self->{bnote}; $self->{transact_bytes} = 0; $self->lock_release if $parts; + $self->{-inbox}->git->cleanup; } sub git_init { -- EW