From: Eric Wong <e@80x24.org>
Date: Tue, 12 Oct 2021 08:40:01 +0000 (+0000)
Subject: isearch: do not access Extsearch->{over} directly
X-Git-Tag: v1.7.0~187
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=84e241687ef1ba3efc7ef486c1ed716c0e797ff0;p=public-inbox.git

isearch: do not access Extsearch->{over} directly

It may not exist due to periodic cleanup to avoid excessive FD use.
---

diff --git a/lib/PublicInbox/Isearch.pm b/lib/PublicInbox/Isearch.pm
index 9ed2d9e5..df940e76 100644
--- a/lib/PublicInbox/Isearch.pm
+++ b/lib/PublicInbox/Isearch.pm
@@ -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 <= ?