about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-01 21:06:18 +0000
committerEric Wong <e@yhbt.net>2020-07-02 20:36:21 +0000
commit542caf3a9b33ac59205cb7e1b92cfe4b4e8257e7 (patch)
tree40cb223caf77e4ad9a99c0a76cead647007ca8c3 /lib
parent5adc4f2fccf0b32b92c4fbc96be38045de2d7e84 (diff)
downloadpublic-inbox-542caf3a9b33ac59205cb7e1b92cfe4b4e8257e7.tar.gz
The default (and fast) TEST_RUN_MODE=2 preloads most modules,
but TEST_RUN_MODE=0 is more realistic and can catch some
problems which may show up in real-world use.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/InboxWritable.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm
index 9bdf8637..875dcce2 100644
--- a/lib/PublicInbox/InboxWritable.pm
+++ b/lib/PublicInbox/InboxWritable.pm
@@ -44,6 +44,7 @@ sub init_inbox {
                 PublicInbox::Import::init_bare($dir);
                 if (defined($self->{indexlevel}) || defined($skip_artnum)) {
                         require PublicInbox::SearchIdx;
+                        require PublicInbox::Msgmap;
                         my $sidx = PublicInbox::SearchIdx->new($self, 1); # just create
                         $sidx->begin_txn_lazy;
                         $self->with_umask(sub {