From 2d9a41bf4f3ecddda07128711c41c3eb3411246b Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Mon, 19 Mar 2018 08:14:43 +0000 Subject: import: implement barrier operation for v1 repos This will allow WatchMaildir to use ->barrier operations instead of reaching inside for nchg. This also ensures dumb HTTP clients can see changes to V2 repos immediately. --- lib/PublicInbox/V2Writable.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/PublicInbox/V2Writable.pm') diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index fd9bf615..fbc71c89 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -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}; -- cgit v1.2.3-24-ge0c7