]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import: cleanup git cat-file processes when ->done
authorEric Wong <e@80x24.org>
Fri, 20 Apr 2018 02:01:04 +0000 (02:01 +0000)
committerEric Wong <e@80x24.org>
Fri, 20 Apr 2018 02:01:25 +0000 (02:01 +0000)
This should reduce idle cat-file instances

lib/PublicInbox/Import.pm

index b25427ee552628237bc094225f2daf24e98dcdac..250a2db31e979054c94df5a0e1dd6ca2d8a5f883 100644 (file)
@@ -440,6 +440,8 @@ sub done {
        _update_git_info($self, 1) if delete $self->{nchg};
 
        $self->lock_release;
+
+       $self->{git}->cleanup;
 }
 
 sub atfork_child {