]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Add FILE_LOCK_SLOW_WARNING_MSECS environment.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 11:05:58 +0000 (14:05 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 11:26:19 +0000 (14:26 +0300)
commit8923deec4c5361cb9090c9b5d3c4e5c173bdc640
treeb4eb5b1190e347d0ccb1f11d2a1cbf7b27fdc0da
parenta4e044d1934a63c3fbe271d27136fae8512637bf
lib: Add FILE_LOCK_SLOW_WARNING_MSECS environment.

Log a warning if any locking takes longer than the specified number of
milliseconds. This can be enabled globally with:

import_environment = $import_environment FILE_LOCK_SLOW_WARNING_MSECS=1000
src/lib/file-dotlock.c
src/lib/file-lock.c
src/lib/file-lock.h