about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-24 05:56:01 +0000
committerEric Wong <e@yhbt.net>2020-07-25 20:48:18 +0000
commitde8e1586d732ae6c09a92588a8e4d442aedbff37 (patch)
treea0c441e9b3ca32aef414242f22d86207178dd82b /t
parent5ce7e26b1d7efc2fb1bb5310a756e7c873145246 (diff)
downloadpublic-inbox-de8e1586d732ae6c09a92588a8e4d442aedbff37.tar.gz
We'll switch to using IdxStack here to ensure we get repeatable
results and ascending THREADIDs according to git chronology.
This means we'll need a two-pass reindex to index existing
messages before indexing new messages.

Since we no longer have a long-lived git-log process, we don't
have to worry about old Xapian referencing the git-log pipe
w/o FD_CLOEXEC, either.
Diffstat (limited to 't')
-rw-r--r--t/v1reindex.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/v1reindex.t b/t/v1reindex.t
index 8cb75188..d70ed4b9 100644
--- a/t/v1reindex.t
+++ b/t/v1reindex.t
@@ -221,7 +221,7 @@ ok(!-d $xap, 'Xapian directories removed again');
         $config{indexlevel} = 'medium';
         my $ibx = PublicInbox::Inbox->new(\%config);
         my $rw = PublicInbox::SearchIdx->new($ibx, 1);
-        eval { $rw->index_sync };
+        eval { $rw->index_sync({reindex => 1}) };
         is($@, '', 'no error from indexing');
         is_deeply(\@warn, [], 'no warnings');
         my $mset = $ibx->search->reopen->query('hello world', {mset=>1});