about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
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;
 }