* [PATCH] isearch: do not access Extsearch->{over} directly
@ 2021-10-12 8:40 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-10-12 8:40 UTC (permalink / raw)
To: meta
It may not exist due to periodic cleanup to avoid excessive FD use.
---
lib/PublicInbox/Isearch.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Isearch.pm b/lib/PublicInbox/Isearch.pm
index 9ed2d9e5a1ac..df940e76156d 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 <= ?
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-12 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 8:40 [PATCH] isearch: do not access Extsearch->{over} directly Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).