about summary refs log tree commit homepage
path: root/lib/PublicInbox/Over.pm
diff options
authorEric Wong <e@80x24.org>2020-12-15 02:02:19 +0000
committerEric Wong <e@80x24.org>2020-12-17 19:13:10 +0000
commit7cc8cb8a8554e1eae817ce2f21dd28b413d3bafc (patch)
tree859eb7a59e00d60982f52e336f0477487e8e6094 /lib/PublicInbox/Over.pm
parent4c434e62a115c1158a0dc31468f109616a4ed088 (diff)
--rethread is useful for dealing with bugs and behaves
just like it does with current inboxes.

This is in case our content deduplication logic changes for
whatever reason and causes previously merged messages to be
considered "different".  As with v2, this won't allow us to
merge messages in a way that allows deduplicating messages which
were previously considered different, but v2 inboxes do not
allow that, either.

In other words, this makes the --reindex and --rethread
switches of -extindex match the behavior of v2 -index.
Diffstat (limited to 'lib/PublicInbox/Over.pm')
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm
index 62709468..49ba180b 100644
--- a/lib/PublicInbox/Over.pm
+++ b/lib/PublicInbox/Over.pm
@@ -261,13 +261,14 @@ SELECT num,tid,ds,ts,ddd FROM over WHERE num = ? LIMIT 1
 sub get_xref3 {
-        my ($self, $num) = @_;
+        my ($self, $num, $raw) = @_;
         my $dbh = dbh($self);
         my $sth = $dbh->prepare_cached(<<'', undef, 1);
 SELECT ibx_id,xnum,oidbin FROM xref3 WHERE docid = ? ORDER BY ibx_id,xnum ASC
         my $rows = $sth->fetchall_arrayref;
+        return $rows if $raw;
         my $eidx_key_sth = $dbh->prepare_cached(<<'', undef, 1);
 SELECT eidx_key FROM inboxes WHERE ibx_id = ?