dovecot-2.2: lib-master: Increased instances file's dotlock time...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 22 13:08:41 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/a25880e35b09
changeset: 17826:a25880e35b09
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 22 16:08:25 2014 +0300
description:
lib-master: Increased instances file's dotlock timeout to 2 seconds.
The 1 second would have been enough, except the current dotlocking code
uses second-level precision in checking timeouts, so it could end up trying
the lock only once.
A better fix would be to fix the dotlocking code to use millisecond-level
precision (internally), but since this is the only user so far where it
would have mattered, it's not really worth the effort (yet).
diffstat:
src/lib-master/master-instance.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 12015689471c -r a25880e35b09 src/lib-master/master-instance.c
--- a/src/lib-master/master-instance.c Mon Sep 22 15:56:31 2014 +0300
+++ b/src/lib-master/master-instance.c Mon Sep 22 16:08:25 2014 +0300
@@ -29,7 +29,7 @@
};
static const struct dotlock_settings dotlock_set = {
- .timeout = 1,
+ .timeout = 2,
.stale_timeout = 60
};
More information about the dovecot-cvs
mailing list