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/WatchMaildir.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/WatchMaildir.pm')
-rw-r--r-- | lib/PublicInbox/WatchMaildir.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index 3da6b276..c72d9396 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -91,7 +91,7 @@ sub _done_for_now { my ($self) = @_; my $importers = $self->{importers}; foreach my $im (values %$importers) { - $im->done if $im->{nchg}; + $im->barrier; } my $opendirs = $self->{opendirs}; |