RFC: Dovecot locking

Rob Browning rlb at defaultvalue.org
Sun Feb 20 11:18:01 PST 2011


Rob Browning <rlb at defaultvalue.org> writes:

> It looks like dovecot's interval is 10 seconds, so for this to work
> right, notmuch will need to call lockfile_touch() more often than that.
>
>   /* How often to touch the uidlist lock file when it's locked.
>      This is done both when using KEEP_LOCKED flag and when syncing a large
>      maildir. */
>   #define MAILDIR_LOCK_TOUCH_SECS 10
>
> As yet, I don't know if that's likely to be easy to add.

OK, Austin just pointed out that we probably don't need this, at least
with the current code.  I was just being overly conservative.

Since we only hold the lock for the duration of a rename, I don't think
there's any need for lockfile_touch().

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4


More information about the notmuch mailing list