From: Eric Wong Date: Fri, 1 Oct 2021 21:44:18 +0000 (+0000) Subject: extsearchidx: do not process eidxq w/o config X-Git-Tag: v1.7.0~231 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7b4071a3afb78f575dc16ecb710e16ef83485a6c;p=public-inbox.git extsearchidx: do not process eidxq w/o config When indexing a single inbox, do not attempt reindexing code paths without a full config, otherwise ordering comparisons won't work. --- 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