diff options
author | Eric Wong <e@80x24.org> | 2021-10-01 21:44:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-02 08:01:07 +0000 |
commit | 7b4071a3afb78f575dc16ecb710e16ef83485a6c (patch) | |
tree | 52e4592aed565558cf27f63a4fe431f89b0431e8 /lib/PublicInbox/ExtSearchIdx.pm | |
parent | a1d11ab624367884f3cff76c13aba85be3a89e45 (diff) | |
download | public-inbox-7b4071a3afb78f575dc16ecb710e16ef83485a6c.tar.gz |
When indexing a single inbox, do not attempt reindexing code paths without a full config, otherwise ordering comparisons won't work.
Diffstat (limited to 'lib/PublicInbox/ExtSearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index c34225b2..f0992e5e 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -688,6 +688,7 @@ sub prep_id2pos ($) { sub eidxq_process ($$) { # for reindexing my ($self, $sync) = @_; + return unless $self->{cfg}; return unless eidxq_lock_acquire($self); my $dbh = $self->{oidx}->dbh; @@ -882,6 +883,7 @@ sub _reindex_inbox ($$$) { sub eidx_reindex { my ($self, $sync) = @_; + return unless $self->{cfg}; # acquire eidxq_lock early because full reindex takes forever # and incremental -extindex processes can run during our checkpoints |