about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-12 08:40:01 +0000
committerEric Wong <e@80x24.org>2021-10-12 08:53:06 +0000
commit84e241687ef1ba3efc7ef486c1ed716c0e797ff0 (patch)
treee30f8a5dc53b46448c803bdff0001edba525cb69 /lib
parented0167d2a851b4f5128f57ad60309a0b76e62cfa (diff)
downloadpublic-inbox-84e241687ef1ba3efc7ef486c1ed716c0e797ff0.tar.gz
isearch: do not access Extsearch->{over} directly
It may not exist due to periodic cleanup to avoid excessive FD use.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Isearch.pm2
1 files changed, 1 insertions, 1 deletions
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 <= ?