[Dovecot] double write-locking dovecot.index.log
michael.abbott at apple.com
Wed May 19 05:06:50 EEST 2010
On Apr 14, 2010, at 9:25 PM, Mike Abbott wrote:
> Dovecot's transactions often write-lock dovecot.index.log twice (without unlocking in between), and then unlock it twice. Is that intended, or is that a bug?
Turns out it was a misunderstanding. No such double locking occurs. When the log file rotates locking does occur on a file with the same name but the descriptor (which is what matters to the file locking code) is different. False alarm.
More information about the dovecot