]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extmsg: fix broken Xapian MID lookup
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 16 Feb 2018 00:17:16 +0000 (00:17 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 16 Feb 2018 00:17:16 +0000 (00:17 +0000)
This likely has no real world implications, though, as we
fall back to Msgmap lookups anyways.

Broken since commit 7eeadcb62729b0efbcb53cd9b7b181897c92cf9a
("search: remove unnecessary abstractions and functionality")

lib/PublicInbox/ExtMsg.pm

index ab9591f9fc195810a5cea30de84e1ed2d8e8bd24..4e31ef0f37c178208d1d0b2b9d07d56c8d0f251e 100644 (file)
@@ -46,7 +46,7 @@ sub ext_msg {
                }
 
                # try to find the URL with Xapian to avoid forking
-               my $doc_id = eval { $s->find_unique_doc_id('mid', $mid) };
+               my $doc_id = eval { $s->find_unique_doc_id('XMID' . $mid) };
                if ($@) {
                        # xapian not configured properly for this repo
                        push @nox, $other;