diff options
author | Eric Wong <e@yhbt.net> | 2020-06-24 18:45:07 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-25 05:37:45 +0000 |
commit | f977826a17f8735e6947dd2da380df8c6d0b38d8 (patch) | |
tree | a3879cdbfd7ba1ac32008173d163d8f5f4163fbb /lib/PublicInbox/Xapcmd.pm | |
parent | 7601f7d864d74dae58ee248e426527fb2ebe74a5 (diff) | |
download | public-inbox-f977826a17f8735e6947dd2da380df8c6d0b38d8.tar.gz |
We can reduce the amount of platform-specific code by always relying on IN_MODIFY/NOTE_WRITE notifications from lock release. This reduces the number of times our read-only daemons will need to wake up when -watch sees no-op message changes (e.g. replied, seen, recent flag changes).
Diffstat (limited to 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r-- | lib/PublicInbox/Xapcmd.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm index 337978bd..78414041 100644 --- a/lib/PublicInbox/Xapcmd.pm +++ b/lib/PublicInbox/Xapcmd.pm @@ -39,6 +39,7 @@ sub commit_changes ($$$$) { my $tmp_over = "$new/over.sqlite3"; $over->connect->sqlite_backup_to_file($tmp_over); $over = undef; + syswrite($im->{lockfh}, '.'); # trigger ->check_inodes } if (!defined($new)) { # culled shard |