From: Timo Sirainen Date: Fri, 11 Dec 2015 14:33:43 +0000 (+0200) Subject: director: Don't mark the host desynced if director is alone in ring. X-Git-Tag: 2.2.21~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4eda2aa3bda09cf14599cdae883f6eeac520ea4;p=thirdparty%2Fdovecot%2Fcore.git director: Don't mark the host desynced if director is alone in ring. --- diff --git a/src/director/director.c b/src/director/director.c index 3cb6f9fbb2..40f41b6955 100644 --- a/src/director/director.c +++ b/src/director/director.c @@ -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); }