lib/PublicInbox/V2Writable.pm | 6 +++--- diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 9d08549f675c65e9fae6ffda6ae35483b0f376c2..de89b7292c147625cfe79bb6a5a12d9dd50682da 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -953,7 +953,7 @@ } } # only update last_commit for $i on reindex iff newer than current -sub update_last_commit ($$$$) { +sub update_last_commit { my ($self, $git, $i, $cmt) = @_; my $last = last_epoch_commit($self, $i); if (defined $last && is_ancestor($git, $last, $cmt)) { @@ -1034,7 +1034,7 @@ my $head = $self->{ibx}->{ref_head} || 'HEAD'; # reindex stops at the current heads and we later rerun index_sync # without {reindex} - my $reindex_heads = last_commits($self, $epoch_max) if $sync->{reindex}; + my $reindex_heads = $self->last_commits($epoch_max) if $sync->{reindex}; for (my $i = $epoch_max; $i >= 0; $i--) { my $git_dir = git_dir_n($self, $i); @@ -1229,7 +1229,7 @@ reindex_checkpoint($self, $sync); } } $all->async_wait_all; - update_last_commit($self, $git, $i, $stk->{latest_cmt}); + $self->update_last_commit($git, $i, $stk->{latest_cmt}); } sub xapian_only {