Start and stop happens infrequently and may be useful for
diagnosing problems about missing messages. A future change
will add more details about per-directory scans.
Requested-by: Robin H. Johnson <robbat2@orbis-terrarum.net>
}
_done_for_now($self);
# do we have more work to do?
- PublicInbox::DS::requeue($self) if keys %$opendirs;
+ keys(%$opendirs) ? PublicInbox::DS::requeue($self)
+ : warn("# full scan complete\n");
}
sub scan {
if ($watch) {
my $scan = sub {
return if !$watch;
- warn "# scanning\n";
+ my ($s) = @_;
+ warn "# scanning (full) ", ($s ? "on $s" : 'at startup'), "\n";
$watch->trigger_scan('full');
};
my $quit = sub { # may be called in IMAP/NNTP children
$ibx->{-no_fsync} = 1;
is($ibx->search->reopen->mset('b:spam')->size, 0, 'spam removed');
- is_deeply([], \@warn, 'no warnings');
+ is_deeply [], [ grep !/^#/, @warn ], 'no warnings';
}
done_testing();