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.
