about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-04 10:02:48 +0000
committerEric Wong <e@80x24.org>2021-08-04 23:47:15 +0000
commit2e1a7378395af3c1db61f26b106befbc42876622 (patch)
tree3e7be6e288599f6f6a5de0f8bade7aa872a96567 /script
parent00fdf28595247e14fe82dbc0b61f778a0f4b41f7 (diff)
downloadpublic-inbox-2e1a7378395af3c1db61f26b106befbc42876622.tar.gz
Boost relies on knowledge of all inboxes in a given config file
to work properly.  So while we support indexing a subset of
inboxes, we must still account for boost in inboxes we're not
indexing.  So split internal inbox groups into "known" and
"active", where previously we only cared for inboxes which were
being actively indexed.

Furthermore, boost checks need to be applied when a
message arrives in different inboxes across multiple
invocations.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210802204058.vscbxs5q7xyolyu2@nitro.local/
Diffstat (limited to 'script')
-rwxr-xr-xscript/public-inbox-extindex2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-extindex b/script/public-inbox-extindex
index addd5ac6..327980d2 100755
--- a/script/public-inbox-extindex
+++ b/script/public-inbox-extindex
@@ -76,7 +76,7 @@ if ($opt->{gc}) {
         if ($opt->{all}) {
                 $eidx->attach_config($cfg);
         } else {
-                $eidx->attach_inbox($_) for @ibxs;
+                $eidx->attach_config($cfg, \@ibxs);
         }
         if ($opt->{watch}) {
                 $cfg = undef; # save memory only after SIGHUP