diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-26 23:25:52 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-28 23:06:20 +0000 |
commit | 09b85106d936263ce31db3be76fdb8727d29c28a (patch) | |
tree | 5d45beddf39c8dcf6e76cef8661942e3ca2b6e60 /lib/PublicInbox | |
parent | d493df537821cadd234d9d0e6e013b580c891d71 (diff) | |
download | public-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')
-rw-r--r-- | lib/PublicInbox/Search.pm | 8 |
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 { |