Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6896:139bd6094de6 HEAD
Use dotlock_use_excl=yes by default.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Dec 2007 16:22:44 +0200 |
parents | bfdbc073598e |
children | 0a3186f44dff |
files | dovecot-example.conf src/master/master-settings.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dovecot-example.conf Sun Dec 02 15:49:05 2007 +0200 +++ b/dovecot-example.conf Sun Dec 02 16:22:44 2007 +0200 @@ -300,10 +300,9 @@ # filesystems (NFS or clustered filesystem). #mmap_disable = no -# Rely on O_EXCL to work when creating dotlock files. The default is to use -# hard linking. O_EXCL makes the dotlocking faster, but it doesn't always -# work with NFS. -#dotlock_use_excl = no +# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL +# since version 3, so this should be safe to use nowadays by default. +#dotlock_use_excl = yes # Don't use fsync() or fdatasync() calls. This makes the performance better # at the cost of potential data loss if the server (or the file server)
--- a/src/master/master-settings.c Sun Dec 02 15:49:05 2007 +0200 +++ b/src/master/master-settings.c Sun Dec 02 16:22:44 2007 +0200 @@ -242,7 +242,7 @@ #else MEMBER(mmap_disable) FALSE, #endif - MEMBER(dotlock_use_excl) FALSE, + MEMBER(dotlock_use_excl) TRUE, MEMBER(fsync_disable) FALSE, MEMBER(mail_nfs_storage) FALSE, MEMBER(mail_nfs_index) FALSE,