changeset 19507:3326e9fda5c1

director: Don't mark the host desynced if director is alone in ring.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Fri, 11 Dec 2015 16:33:43 +0200
parents e6aa0aa3d599
children 9f1eea96a350
files src/director/director.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director.c	Thu Dec 10 14:40:01 2015 +0200
+++ b/src/director/director.c	Fri Dec 11 16:33:43 2015 +0200
@@ -586,7 +586,10 @@
 
 	director_send_host(dir, src, orig_src, host);
 
-	host->desynced = TRUE;
+	/* mark the host desynced until ring is synced again. except if we're
+	   alone in the ring that never happens. */
+	if (dir->right != NULL || dir->left != NULL)
+		host->desynced = TRUE;
 	director_sync(dir);
 }