]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extmsg: add note about the deficiency of the implementation
authorEric Wong <e@80x24.org>
Sat, 5 Sep 2015 09:16:19 +0000 (09:16 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Sep 2015 09:16:19 +0000 (09:16 +0000)
ref: http://public-inbox.org/meta/20150905091457.GA27857@dcvr.yhbt.net/

lib/PublicInbox/ExtMsg.pm

index 243b6bad4ccd9d1e990972d828c5bf05ef3539bb..77537c2cd9f1bd4a8f070e0ada83f515b9f12268 100644 (file)
@@ -95,6 +95,8 @@ sub ext_msg {
                unshift @pfx, { srch => $ctx->{srch}, url => $url };
                foreach my $pfx (@pfx) {
                        my $srch = delete $pfx->{srch} or next;
+
+                       # FIXME we may need a proper prefix trie here...
                        if (my $res = $srch->mid_prefix($mid)) {
                                $n_partial += scalar(@$res);
                                $pfx->{res} = $res;