]> Sergey Matveev's repositories - public-inbox.git/commit
xapcmd: delay over->check_inodes trigger
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 21:51:31 +0000 (21:51 +0000)
committerEric Wong <e@yhbt.net>
Tue, 14 Jul 2020 09:14:12 +0000 (09:14 +0000)
commit2a5ffae959ebe49dbfbff809db1aa798ceae4228
tree06704962df6ab159b9cc7f72a20772d2df0e7238
parentd78efbd2f3d973477099261e3c75bf4852473b77
xapcmd: delay over->check_inodes trigger

We must not trigger wakeups on InboxIdle users until after we've
renamed all files into place.  Otherwise, the InboxIdle caller
may just reopen the old (soon-to-be-unlinked) file.

This fixes occasional test failures in t/nntpd.t

Fixes: f977826a17f8735e ("lock: reduce inotify wakeups")
lib/PublicInbox/Xapcmd.pm