about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-31 17:47:50 -1200
committerEric Wong <e@80x24.org>2021-01-02 09:15:10 +0000
commitd893d3c028a7fc442e024e5e5b8ea737945b19b3 (patch)
treea3694a511a8a2eecd43afbb27e814c8714a56792 /lib/PublicInbox/LeiStore.pm
parentaf2429033aef447f0149b207d87ffacfb057fc6d (diff)
downloadpublic-inbox-d893d3c028a7fc442e024e5e5b8ea737945b19b3.tar.gz
Hopefully this will make it easier to spot dependency
bugs in the future.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r--lib/PublicInbox/LeiStore.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index 7c62ffea..a3decf5f 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -24,10 +24,7 @@ sub new {
         my (undef, $dir, $opt) = @_;
         my $eidx = PublicInbox::ExtSearchIdx->new($dir, $opt);
         my $self = bless { priv_eidx => $eidx }, __PACKAGE__;
-        if ($opt->{creat}) {
-                PublicInbox::SearchIdx::load_xapian_writable();
-                eidx_init($self);
-        }
+        eidx_init($self) if $opt->{creat};
         $self;
 }