diff options
author | Eric Wong <e@80x24.org> | 2021-03-15 12:57:54 +0100 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-15 16:53:59 -0400 |
commit | dd48234ff2ade973df8d1b53a3b0674d5226df79 (patch) | |
tree | 6948b0a08ffc2f7dc414a49242d136d800906608 /lib | |
parent | d04b7caec026edba9e7e70cfac3256097cdd476f (diff) | |
download | public-inbox-dd48234ff2ade973df8d1b53a3b0674d5226df79.tar.gz |
This will results in a small reduction in on-disk footprint by removing Xapian docdata and reduction in code by removing an unnecessary -index invocation.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 77306a6e..6ca69174 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -558,8 +558,8 @@ sub setup_public_inboxes () { local $ENV{PI_CONFIG} = $pi_config; for my $V (1, 2) { - run_script([qw(-init), "-V$V", "t$V", - '--newsgroup', "t.v$V", + run_script([qw(-init --skip-docdata), "-V$V", + '--newsgroup', "t.v$V", "t$V", "$test_home/t$V", "http://example.com/t$V", "t$V\@example.com" ]) or BAIL_OUT "init v$V"; } @@ -569,6 +569,7 @@ sub setup_public_inboxes () { my $seen = 0; $cfg->each_inbox(sub { my ($ibx) = @_; + $ibx->{-no_fsync} = 1; my $im = PublicInbox::InboxWritable->new($ibx)->importer(0); my $V = $ibx->version; my @eml = (glob('t/*.eml'), 't/data/0001.patch'); @@ -578,10 +579,6 @@ sub setup_public_inboxes () { $seen++; } $im->done; - if ($V == 1) { - run_script(['-index', $ibx->{inboxdir}]) or - BAIL_OUT 'index v1'; - } }); $seen or BAIL_OUT 'no imports'; open my $fh, '>', $stamp or BAIL_OUT "open $stamp: $!"; |