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 /t | |
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 't')
-rw-r--r-- | t/extsearch.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/extsearch.t b/t/extsearch.t index 090f6db5..797aa8f5 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -559,6 +559,15 @@ EOM for (@xdb) { ok(!$_->get_metadata('indexlevel'), 'no indexlevel in >0 shard') } + my $mpi = "$d/ALL.git/objects/pack/multi-pack-index"; + SKIP: { + skip 'git too old for for multi-pack-index', 2 if !-f $mpi; + unlink glob("$d/ALL.git/objects/pack/*"); + ok run_script([qw(-extindex --all -L medium -j3 + --no-multi-pack-index), $d]), + 'test --no-multi-pack-index'; + ok !-f $mpi, '--no-multi-pack-index respected'; + } } test_lei(sub { |