diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:06:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | 616a08457175b442d4caeb67f9ccd9d3e69f50f5 (patch) | |
tree | 873db44cf7022c98ed7420db3b929715bc0239d7 /lib/PublicInbox/ExtSearchIdx.pm | |
parent | eb94f5e4f592db1ec34232a831fa66d1894cb8af (diff) | |
download | public-inbox-616a08457175b442d4caeb67f9ccd9d3e69f50f5.tar.gz |
This was intended to make development easier; but also allows us description, URL, and address changes to be picked up independently of message history.
Diffstat (limited to 'lib/PublicInbox/ExtSearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 890ac282..2cdc31cb 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -298,7 +298,7 @@ sub _sync_inbox ($$$) { my $epoch_max; defined($ibx->git_dir_latest(\$epoch_max)) or return; $sync->{epoch_max} = $epoch_max; - sync_prepare($self, $sync) or return; # fills $sync->{todo} + sync_prepare($self, $sync); # or return # TODO: once MiscIdx is stable } elsif ($v == 1) { my $uv = $ibx->uidvalidity; my $lc = $self->{oidx}->eidx_meta("lc-v1:$ekey//$uv"); @@ -309,8 +309,10 @@ sub _sync_inbox ($$$) { warn "E: $ekey unsupported inbox version (v$v)\n"; return; } - index_todo($self, $sync, $_) for @{delete($sync->{todo}) // []}; - $self->{midx}->index_ibx($ibx); + unless ($sync->{quit}) { + index_todo($self, $sync, $_) for @{delete($sync->{todo}) // []}; + $self->{midx}->index_ibx($ibx) unless $sync->{quit}; + } $ibx->git->cleanup; # done with this inbox, now } |