diff options
author | Eric Wong <e@80x24.org> | 2021-10-13 07:00:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-13 19:51:20 +0000 |
commit | bfff9b0faddf9cc67e44eb3241d49a7677dcd912 (patch) | |
tree | e785f0a952aa15f9c48b37d94785b4bfc8859d1e /lib/PublicInbox/ExtSearchIdx.pm | |
parent | 96b0a14be7e62742ad06f0a37c3cba61fe6c51e7 (diff) | |
download | public-inbox-bfff9b0faddf9cc67e44eb3241d49a7677dcd912.tar.gz |
This gives context as to where warnings are coming from.
Diffstat (limited to 'lib/PublicInbox/ExtSearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index ddb16241..750ced5c 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -754,9 +754,8 @@ sub prep_id2pos ($) { sub eidxq_process ($$) { # for reindexing my ($self, $sync) = @_; - return unless $self->{cfg}; - - return unless eidxq_lock_acquire($self); + local $self->{current_info} = 'eidxq process'; + return unless ($self->{cfg} && eidxq_lock_acquire($self)); my $dbh = $self->{oidx}->dbh; my $tot = $dbh->selectrow_array('SELECT COUNT(*) FROM eidxq') or return; ${$sync->{nr}} = 0; |