]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: reopen skeleton DB as well
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Mon, 26 Feb 2018 23:25:52 +0000 (23:25 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 28 Feb 2018 23:06:20 +0000 (23:06 +0000)
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

index 1df87d0ef6ce89bbb1e72223e107e87b6e53b043..3a27512b5bcf79472330388211e7b2c3763466db 100644 (file)
@@ -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 {