dovecot-2.0: dotlocking: Don't generate "Will override dotlock i...

dovecot at dovecot.org dovecot at dovecot.org
Fri May 1 20:01:25 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4f12a7c7f140
changeset: 9192:4f12a7c7f140
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 01 13:01:09 2009 -0400
description:
dotlocking: Don't generate "Will override dotlock in 0 secs" messages.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/file-dotlock.c |    2 +-

diffs (12 lines):

diff -r 92d0383cc323 -r 4f12a7c7f140 src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c	Fri May 01 12:30:07 2009 -0400
+++ b/src/lib/file-dotlock.c	Fri May 01 13:01:09 2009 -0400
@@ -535,7 +535,7 @@ dotlock_create(struct dotlock *dotlock, 
 					/* we don't want to override */
 					lock_info.last_change = now;
 				}
-			} else {
+			} else if (wait_left > 0) {
 				(void)set->callback(wait_left, FALSE,
 						    set->context);
 			}


More information about the dovecot-cvs mailing list