]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Don't mark the host desynced if director is alone in ring.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 11 Dec 2015 14:33:43 +0000 (16:33 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 11 Dec 2015 14:33:43 +0000 (16:33 +0200)
src/director/director.c

index 3cb6f9fbb2b24a98a62f36fa68caae289a08d8af..40f41b6955125cd8419fcd30a2d2dbd898ba7c19 100644 (file)
@@ -586,7 +586,10 @@ void director_update_host(struct director *dir, struct director_host *src,
 
        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);
 }