about summary refs log tree commit homepage
path: root/lib/PublicInbox/Admin.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-25 10:21:12 +0000
committerEric Wong <e@80x24.org>2020-12-26 06:22:56 +0000
commitfb4dd7fdeeed8478cda9b7e63e56564da8cbdacf (patch)
treee50ce0cadd50c5210c0b4f53239e8db605a529bc /lib/PublicInbox/Admin.pm
parent14e606423429d6121c295c2bc0599fe1bf66b07c (diff)
downloadpublic-inbox-fb4dd7fdeeed8478cda9b7e63e56564da8cbdacf.tar.gz
We'll count the number of log changes (regardless of index or
unindex) and only attach inboxes to ExtSearchIdx objects when
they get new work.  We'll also reduce lock bouncing and only
update external indices after all per-inbox indexing is done.

This also updates existing v2 indexing/unindexing callers
to be more consistent and ensures unindex log entries update
per-inbox last commit information.
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r--lib/PublicInbox/Admin.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index 9a86d206..b468108e 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -271,6 +271,7 @@ EOM
                 $idx = PublicInbox::SearchIdx->new($ibx, 1);
         }
         $idx->index_sync($opt);
+        $idx->{nidx} // 0; # returns number processed
 }
 
 sub progress_prepare ($) {