diff options
author | Eric Wong <e@80x24.org> | 2020-10-27 07:54:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-07 10:21:42 +0000 |
commit | 0dfbdc453f9b522dadbde436733c215fa73a58dc (patch) | |
tree | 0f8b1f59e61d6ce8331bb2b717be304ebddad054 /lib | |
parent | 5146114b3bc0dbee255a936703fe821ee4a1eebf (diff) | |
download | public-inbox-0dfbdc453f9b522dadbde436733c215fa73a58dc.tar.gz |
This will let us use it from ExtSearchIdx.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index ca60f2a1..d417b125 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1038,6 +1038,9 @@ sub sync_prepare ($$) { # without {reindex} my $reindex_heads = $self->last_commits($sync) if $sync->{reindex}; + if ($sync->{max_size} = $sync->{-opt}->{max_size}) { + $sync->{index_oid} = $self->can('index_oid'); + } for (my $i = $sync->{epoch_max}; $i >= 0; $i--) { my $git_dir = $sync->{ibx}->git_dir_n($i); -d $git_dir or next; # missing epochs are fine @@ -1312,9 +1315,6 @@ sub index_sync { $art_beg++ if defined($art_beg); } } - if ($sync->{max_size} = $opt->{max_size}) { - $sync->{index_oid} = $self->can('index_oid'); - } # work forwards through history index_epoch($self, $sync, $_) for (0..$epoch_max); $self->{oidx}->rethread_done($opt); |