]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
import: implement barrier operation for v1 repos
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index fd9bf615c66da24d88abd7bf2b091cd561dbf85a..fbc71c89584c5accb9497606728bdcde3b2fd289 100644 (file)
@@ -263,13 +263,8 @@ sub checkpoint {
 sub barrier {
        my ($self) = @_;
 
-       # For safety, we ensure git checkpoint is complete before because
-       # the data in git is still more important than what is in Xapian.
-       # Performance may be gained by delaying ->progress call but we
-       # lose safety
        if (my $im = $self->{im}) {
-               $im->checkpoint;
-               $im->progress('checkpoint');
+               $im->barrier;
        }
        my $skel = $self->{skel};
        my $parts = $self->{idx_parts};