about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
authorEric Wong <e@80x24.org>2020-06-11 00:57:53 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:58:30 +0000
commit2a717d13f10fcdc69921d80cf94c47a694a175d4 (patch)
tree188b2834628fd448f9397daefb4a8a77c00cdce1 /lib/PublicInbox/NNTP.pm
parent3d52c093ad5ce7a32f8842d9ae020712f9786352 (diff)
For v1 inboxes (and possibly v2 in the future, for VACUUM),
public-inbox-compact replaces over.sqlite3 with a new file.

This currently doesn't need an extra inotify watch descriptor
(or FD for kevent) at the moment, so it can coexist nicely for
systems w/o IO::KQueue or Linux::Inotify2.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index ac13c7df..bffd773c 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -334,7 +334,9 @@ sub cmd_newnews ($$$$;$$) {
 sub cmd_group ($$) {
         my ($self, $group) = @_;
         my $no_such = '411 no such news group';
-        my $ng = $self->{nntpd}->{groups}->{$group} or return $no_such;
+        my $nntpd = $self->{nntpd};
+        my $ng = $nntpd->{groups}->{$group} or return $no_such;
+        $nntpd->idler_start;
         $self->{ng} = $ng;
         my ($min, $max) = $ng->mm->minmax;