]> Sergey Matveev's repositories - public-inbox.git/commit
lei: propagate keyword changes from lei/store
authorEric Wong <e@80x24.org>
Thu, 2 Sep 2021 10:17:58 +0000 (10:17 +0000)
committerEric Wong <e@80x24.org>
Thu, 2 Sep 2021 21:22:50 +0000 (21:22 +0000)
commit4166c482b710acea785063de2c69a8a370c6d373
treeb6dfb983908d485b66f6e6140b45f71a6fcae251
parent4f9c44e3fff9c413fc54050dcc633692d33f6968
lei: propagate keyword changes from lei/store

This works with existing inotify/EVFILT_VNODE functionality to
propagate changes made from one Maildir to another Maildir.

I chose the lei/store worker process to handle this since
propagating changes back into lei-daemon on a massive scale
could lead to dead-locking while both processes are attempting
to write to each other.  Eliminating IPC overhead is a nice
side effect, but could hurt performance if Maildirs are slow.

The code for "lei export-kw" is significantly revamped to match
the new code used in the "lei/store" daemon.  It should be more
correct w.r.t. corner-cases and stale entries, but perhaps
better tests need to be written.

squashed:
  t/lei-auto-watch: increase delay for FreeBSD kevent

  My FreeBSD VM seems to need longer for this test than inotify
  under Linux, likely because the kevent support code needs to be
  more complicated.
MANIFEST
lib/PublicInbox/LeiExportKw.pm
lib/PublicInbox/LeiNoteEvent.pm
lib/PublicInbox/LeiStore.pm
t/lei-auto-watch.t [new file with mode: 0644]