diff options
author | Eric Wong <e@yhbt.net> | 2020-07-24 05:56:01 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-25 20:48:18 +0000 |
commit | de8e1586d732ae6c09a92588a8e4d442aedbff37 (patch) | |
tree | a0c441e9b3ca32aef414242f22d86207178dd82b /t | |
parent | 5ce7e26b1d7efc2fb1bb5310a756e7c873145246 (diff) | |
download | public-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.t | 2 |
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}); |