diff options
author | Eric Wong <e@80x24.org> | 2024-04-28 21:15:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-29 17:10:02 +0000 |
commit | 7f3b57f4c1cbbb7ddfa41dde6d25276ee96d3fd4 (patch) | |
tree | 8d223fc78c0f27fc44b0877dfc29ce0669f0f3d4 /lib | |
parent | 31ca305f28d747a094a2e82c8193ac5546c44cb5 (diff) | |
download | public-inbox-master.tar.gz |
git multi-pack-index files were creating swap storms and OOM-ing on my system; so providing an option to disable it seems prudent given the minor startup time regression.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 763a124c..774fa47b 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -1287,7 +1287,7 @@ sub idx_init { # similar to V2Writable ($has_new || $prune_nr || $new ne '') and $self->{mg}->write_alternates($mode, $alt, $new); my $restore = $self->with_umask; - if ($git_midx) { + if ($git_midx && ($opt->{'multi-pack-index'} // 1)) { my @cmd = ('multi-pack-index'); push @cmd, '--no-progress' if ($opt->{quiet}//0) > 1; my $lk = $self->lock_for_scope; |