about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-10-27 07:54:39 +0000
committerEric Wong <e@80x24.org>2020-11-07 10:21:57 +0000
commit75bb8f5a39562f1bc5603e72338c5ed1c292362b (patch)
treebd7ef30d8afa9d3cf569a1382e0c2239d6b973f6 /lib/PublicInbox/SearchIdx.pm
parent1d84b11490c71859d299713a2f9bf798ac740c8a (diff)
downloadpublic-inbox-75bb8f5a39562f1bc5603e72338c5ed1c292362b.tar.gz
searchidx: favor $sync->{ibx} (over $self->{ibx})
In case we want to reuse code with ExtSearchIdx or V2Writable.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index ea884434..32fa16f5 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -691,7 +691,7 @@ sub v1_checkpoint ($$;$) {
 
         $self->{oidx}->rethread_done($sync->{-opt}) if $newest; # all done
         commit_txn_lazy($self);
-        $self->{ibx}->git->cleanup;
+        $sync->{ibx}->git->cleanup;
         my $nr = ${$sync->{nr}};
         idx_release($self, $nr);
         # let another process do some work...
@@ -707,7 +707,7 @@ sub v1_checkpoint ($$;$) {
 # only for v1
 sub process_stack {
         my ($self, $sync, $stk) = @_;
-        my $git = $self->{ibx}->git;
+        my $git = $sync->{ibx}->git;
         my $max = $self->{batch_bytes};
         my $nr = 0;
         $sync->{nr} = \$nr;