projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1230317
)
import: failed GC runs are non-fatal
author
Eric Wong <e@80x24.org>
Sun, 16 Oct 2016 00:36:14 +0000 (
00:36
+0000)
committer
Eric Wong <e@80x24.org>
Sun, 16 Oct 2016 00:36:14 +0000 (
00:36
+0000)
We should not completely kill a process if "git gc --auto"
errors out due to a warning or whatnot.
lib/PublicInbox/Import.pm
patch
|
blob
|
history
diff --git
a/lib/PublicInbox/Import.pm
b/lib/PublicInbox/Import.pm
index 611f7b1609bdcd554f2b81bae1901c279427495c..1ac112b8a44222fa830f9635242155ffd00084de 100644
(file)
--- a/
lib/PublicInbox/Import.pm
+++ b/
lib/PublicInbox/Import.pm
@@
-240,7
+240,8
@@
sub done {
my $s = PublicInbox::SearchIdx->new($inbox);
$s->index_sync({ ref => $self->{ref} });
};
- run_die([@cmd, qw(gc --auto)], undef);
+
+ eval { run_die([@cmd, qw(gc --auto)], undef) };
}
my $lockfh = delete $self->{lockfh} or die "BUG: not locked: $!";