about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-25 22:16:44 +0000
committerEric Wong <e@80x24.org>2021-09-26 00:06:25 +0000
commit71f6861703fde6f6687b002cd15c38cb7ef4a028 (patch)
tree98416e2d9d372bb8eed61d42899329146689f238 /lib/PublicInbox/ExtMsg.pm
parent40a52db17d468ab81d19d55333e390ab6e4ceedc (diff)
downloadpublic-inbox-71f6861703fde6f6687b002cd15c38cb7ef4a028.tar.gz
extmsg: search_partial: use ->isrch if available
This allows us to avoid creating ibx->{search}->{xdb} at this
spot by using an `undef' value.  This is a step towards
eliminating the innocuous "/path/to/inboxdir/xap15 has no shards"
messages introduced in commit 63d7b8ce (daemons: revamp
periodic cleanup task, 2021-09-23)
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index b7427b1b..c134de55 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -32,7 +32,7 @@ sub PARTIAL_MAX () { 100 }
 sub search_partial ($$) {
         my ($ibx, $mid) = @_;
         return if length($mid) < $MIN_PARTIAL_LEN;
-        my $srch = $ibx->search or return; # NOT ->isrch, we already try ->ALL
+        my $srch = $ibx->isrch or return;
         my $opt = { limit => PARTIAL_MAX, relevance => -1 };
         my @try = ("m:$mid*");
         my $chop = $mid;