diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-19 08:14:43 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-19 08:16:34 +0000 |
commit | 2d9a41bf4f3ecddda07128711c41c3eb3411246b (patch) | |
tree | 3f201696e186d8a51cdf90bf7a9ca87c931873d3 /lib/PublicInbox/V2Writable.pm | |
parent | bafd4084d8e78ef48205e6ce573f1bbe52a669a8 (diff) | |
download | public-inbox-2d9a41bf4f3ecddda07128711c41c3eb3411246b.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 7 |
1 files changed, 1 insertions, 6 deletions
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}; |