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://www.git.stargrave.org/?a=commitdiff_plain;h=09b85106d936263ce31db3be76fdb8727d29c28a;p=public-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 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 {