From 09b85106d936263ce31db3be76fdb8727d29c28a Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Mon, 26 Feb 2018 23:25:52 +0000 Subject: search: reopen skeleton DB as well Any Xapian DB is subject to the same errors and retries. Perhaps in the future this can made more granular to avoid unnecessary reopens. --- lib/PublicInbox/Search.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3-24-ge0c7