]> Sergey Matveev's repositories - public-inbox.git/commitdiff
isearch: do not access Extsearch->{over} directly
authorEric Wong <e@80x24.org>
Tue, 12 Oct 2021 08:40:01 +0000 (08:40 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Oct 2021 08:53:06 +0000 (08:53 +0000)
It may not exist due to periodic cleanup to avoid excessive FD use.

lib/PublicInbox/Isearch.pm

index 9ed2d9e5a1acee671ea26bed4d9dd12b49644490..df940e76156d0f162d179f99352e4f7091ba6cc4 100644 (file)
@@ -34,7 +34,7 @@ sub mset {
        if (my $uid_range = $opt{uid_range}) {
                my ($beg, $end) = @$uid_range;
                my $ibx_id = $self->{-ibx_id} //= _ibx_id($self);
-               my $dbh = $self->{es}->{over}->dbh;
+               my $dbh = $self->{es}->over->dbh;
                my $sth = $dbh->prepare_cached(<<'', undef, 1);
 SELECT MIN(docid) FROM xref3 WHERE ibx_id = ? AND xnum >= ? AND xnum <= ?