diff options
author | Eric Wong <e@80x24.org> | 2021-10-08 10:20:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-08 21:23:28 +0000 |
commit | 13a2fcc724576a78d0955f64dc0f4494545153c3 (patch) | |
tree | e81ef19be921acb9963064c46923b80c7dc3d5df /lib/PublicInbox/V2Writable.pm | |
parent | e46b24f437639e3c2cc19df4a2c875b56fe6fea7 (diff) | |
download | public-inbox-13a2fcc724576a78d0955f64dc0f4494545153c3.tar.gz |
Some code paths may use maximum size checks, so ensure any checks are waited on, too.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-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 36b84f57..fcd7ffe2 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1031,7 +1031,7 @@ sub sync_prepare ($$) { my $req = { %$sync, oid => $oid }; $self->git->cat_async($oid, $unindex_oid, $req); } - $self->git->cat_async_wait; + $self->git->async_wait_all; } return 0 if $sync->{quit}; if (!$regen_max) { @@ -1113,7 +1113,7 @@ sub unindex_todo ($$$) { $self->git->cat_async($1, $unindex_oid, { %$sync, oid => $1 }); } close $fh or die "git log failed: \$?=$?"; - $self->git->cat_async_wait; + $self->git->async_wait_all; return unless $sync->{-opt}->{prune}; my $after = scalar keys %$unindexed; @@ -1245,7 +1245,7 @@ sub xapian_only { index_xap_step($self, $sync, $art_beg, 1); } } - $self->git->cat_async_wait; + $self->git->async_wait_all; $self->{ibx}->cleanup; $self->done; } |