diff options
author | Eric Wong <e@80x24.org> | 2020-10-17 08:04:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-10-17 19:52:50 +0000 |
commit | 2686f6e69245aa32f9c2a286475ed91db776b065 (patch) | |
tree | 5cdf184c4d738d18ddfbcf5c1042f52001b83742 /lib/PublicInbox/SearchIdx.pm | |
parent | c51b6340a05cf11f7b0b3bb978288ade2f930c4a (diff) | |
download | public-inbox-2686f6e69245aa32f9c2a286475ed91db776b065.tar.gz |
->cat_async and ->check_async may trigger each other (in future callers) while waiting, so we need a unified method to ensure both complete. This doesn't affect current code, but allows us to slightly simplify existing callers.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 2c5c815f..2aec2b73 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -587,8 +587,7 @@ sub check_size { # check_async cb for -index --max-size=... sub v1_checkpoint ($$;$) { my ($self, $sync, $stk) = @_; - $self->{ibx}->git->check_async_wait; - $self->{ibx}->git->cat_async_wait; + $self->{ibx}->git->async_wait_all; # latest_cmt may be undef my $newest = $stk ? $stk->{latest_cmt} : undef; |