about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-08 11:19:57 +0000
committerEric Wong <e@80x24.org>2019-01-08 19:28:20 +0000
commit59fd8cf084c6a67d9801c888a183eb83b552692d (patch)
tree35f98b47583dc371526def07ddeaaa6b030d1ff8 /lib/PublicInbox/Inbox.pm
parent7766a71df4cb715a240fd97a03dc0c31ab153c21 (diff)
downloadpublic-inbox-59fd8cf084c6a67d9801c888a183eb83b552692d.tar.gz
{mapping} overhead is now down to ~1.3M at the end of
a giant thread from hell.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 73f5761a..d57e46d2 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -302,8 +302,9 @@ sub smsg_by_mid ($$) {
         my ($self, $mid) = @_;
         my $srch = search($self) or return;
         # favor the Message-ID we used for the NNTP article number:
-        my $num = mid2num($self, $mid);
-        defined $num ? $srch->lookup_article($num) : undef;
+        defined(my $num = mid2num($self, $mid)) or return;
+        my $smsg = $srch->lookup_article($num) or return;
+        PublicInbox::SearchMsg::psgi_cull($smsg);
 }
 
 sub msg_by_mid ($$;$) {