From 7b4071a3afb78f575dc16ecb710e16ef83485a6c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Oct 2021 21:44:18 +0000 Subject: 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. --- lib/PublicInbox/ExtSearchIdx.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/PublicInbox/ExtSearchIdx.pm') 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 -- cgit v1.2.3-24-ge0c7