From c4eda2aa3bda09cf14599cdae883f6eeac520ea4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 Dec 2015 16:33:43 +0200 Subject: [PATCH] director: Don't mark the host desynced if director is alone in ring. --- src/director/director.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.47.3