From a367ec1b15a2458e532245f5308565dd84f8ca63 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 22 Aug 2020 06:06:27 +0000 Subject: mbox: disable "&t" on existing Xapian until full reindex Expanding threads via over.sqlite3 for mbox.gz downloads without Xapian effectively collapsing on the THREADID column leads to repeated messages getting downloaded. To avoid that situation, use a "has_threadid" Xapian metadata flag that's only set on --reindex (and brand new Xapian DBs). This allows admins to upgrade WWW or do --reindex in any order; without worrying about users eating up bandwidth and CPU cycles. --- t/init.t | 1 + 1 file changed, 1 insertion(+) (limited to 't/init.t') diff --git a/t/init.t b/t/init.t index dad09435..a5a9debc 100644 --- a/t/init.t +++ b/t/init.t @@ -108,6 +108,7 @@ SKIP: { is(PublicInbox::Admin::detect_indexlevel($ibx), 'full', "detected default indexlevel -V$v"); ok($ibx->{-skip_docdata}, "docdata skip set -V$v"); + ok($ibx->search->has_threadid, 'has_threadid flag set on new inbox'); } # loop for idempotency -- cgit v1.2.3-24-ge0c7