From 8ffed15abbec68463ff3f3105d6651c8a4b5d813 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 Oct 2021 05:04:41 -0700 Subject: extindex: support --reindex --fast This mode only checks history for missed/stale messages and doesn't attempt to reindex messages which are already indexed. --- t/extsearch.t | 5 +++++ 1 file changed, 5 insertions(+) (limited to 't') diff --git a/t/extsearch.t b/t/extsearch.t index ca586f61..896e2704 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -336,6 +336,11 @@ if ('reindex catches missed messages') { $es->{xdb}->reopen; $mset = $es->mset("mid:$new->{mid}"); is($mset->size, 0, 'stale mid gone Xapian'); + + ok(run_script([qw(-extindex --reindex --all --fast), "$home/extindex"], + undef, $opt), '--reindex w/ --fast'); + ok(!run_script([qw(-extindex --all --fast), "$home/extindex"], + undef, $opt), '--fast alone makes no sense'); } if ('reindex catches content bifurcation') { -- cgit v1.2.3-24-ge0c7