]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
tls: epollbit: account for miscellaneous OpenSSL errors
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index 5ff2af1035600e079888820fe65b58b1c71be71c..c04f0c5951495754da74061c79456ac14b9c8f8e 100644 (file)
@@ -1030,7 +1030,7 @@ sub sync_prepare ($$$) {
        my ($self, $sync, $epoch_max) = @_;
        my $pr = $sync->{-opt}->{-progress};
        my $regen_max = 0;
-       my $head = $self->{ibx}->{ref_head} || 'refs/heads/master';
+       my $head = $self->{ibx}->{ref_head} || 'HEAD';
 
        # reindex stops at the current heads and we later rerun index_sync
        # without {reindex}
@@ -1228,8 +1228,7 @@ sub index_epoch ($$$) {
                        reindex_checkpoint($self, $sync);
                }
        }
-       $all->check_async_wait;
-       $all->cat_async_wait;
+       $all->async_wait_all;
        update_last_commit($self, $git, $i, $stk->{latest_cmt});
 }