]> Sergey Matveev's repositories - public-inbox.git/commit
index: do not attach inbox to extindex unless updated
authorEric Wong <e@80x24.org>
Fri, 25 Dec 2020 10:21:12 +0000 (10:21 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 06:22:56 +0000 (06:22 +0000)
commitfb4dd7fdeeed8478cda9b7e63e56564da8cbdacf
treee50ce0cadd50c5210c0b4f53239e8db605a529bc
parent14e606423429d6121c295c2bc0599fe1bf66b07c
index: do not attach inbox to extindex unless updated

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.
lib/PublicInbox/Admin.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/V2Writable.pm
script/public-inbox-index