From: Eric Wong (Contractor, The Linux Foundation) Date: Mon, 26 Feb 2018 23:25:52 +0000 (+0000) Subject: search: reopen skeleton DB as well X-Git-Tag: v1.1.0-pre1~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09b85106d936263ce31db3be76fdb8727d29c28a;p=thirdparty%2Fpublic-inbox.git 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. --- diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 1df87d0ef..3a27512b5 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 {