dovecot-2.2: director: Fixed working as standalone.

dovecot at dovecot.org dovecot at dovecot.org
Sun Jun 24 20:57:39 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/46d01b728647
changeset: 14652:46d01b728647
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 11 16:54:14 2012 +0300
description:
director: Fixed working as standalone.

diffstat:

 src/director/director.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 98f2c12eccdb -r 46d01b728647 src/director/director.c
--- a/src/director/director.c	Mon Jun 11 16:30:58 2012 +0300
+++ b/src/director/director.c	Mon Jun 11 16:54:14 2012 +0300
@@ -363,6 +363,11 @@
 {
 	/* we're synced again when we receive this SYNC back */
 	dir->sync_seq++;
+	if (dir->right == NULL && dir->left == NULL) {
+		/* we're alone. if we're already synced,
+		   don't become unsynced. */
+		return;
+	}
 	director_set_ring_unsynced(dir);
 
 	if (dir->sync_frozen) {


More information about the dovecot-cvs mailing list