summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab02e4a)
When a file goes away, try to make sure we don't waste
time trying to access or store it.
use v5.10.1;
use parent qw(PublicInbox::IPC);
use PublicInbox::DS;
use v5.10.1;
use parent qw(PublicInbox::IPC);
use PublicInbox::DS;
our $to_flush; # { cfgpath => $lei }
our $to_flush; # { cfgpath => $lei }
sub maildir_event { # via wq_io_do
my ($self, $fn, $vmd, $state) = @_;
sub maildir_event { # via wq_io_do
my ($self, $fn, $vmd, $state) = @_;
- my $eml = PublicInbox::InboxWritable::eml_from_path($fn) // return;
- eml_event($self, $eml, $vmd, $state);
+ if (my $eml = PublicInbox::InboxWritable::eml_from_path($fn)) {
+ eml_event($self, $eml, $vmd, $state);
+ } elsif ($! == ENOENT) {
+ $self->{lms}->clear_src(@{$vmd->{sync_info}});
+ } # else: eml_from_path already warns