about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-26 23:25:52 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-28 23:06:20 +0000
commit09b85106d936263ce31db3be76fdb8727d29c28a (patch)
tree5d45beddf39c8dcf6e76cef8661942e3ca2b6e60 /lib/PublicInbox/Search.pm
parentd493df537821cadd234d9d0e6e013b580c891d71 (diff)
downloadpublic-inbox-09b85106d936263ce31db3be76fdb8727d29c28a.tar.gz
Any Xapian DB is subject to the same errors and retries.
Perhaps in the future this can made more granular to avoid
unnecessary reopens.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 1df87d0e..3a27512b 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -167,7 +167,13 @@ sub new {
         $self;
 }
 
-sub reopen { $_[0]->{xdb}->reopen }
+sub reopen {
+        my ($self) = @_;
+        $self->{xdb}->reopen;
+        if (my $skel = $self->{skel}) {
+                $skel->reopen;
+        }
+}
 
 # read-only
 sub query {