From 5a444fdfabcc0c75708c21e84dc8b87eddab7335 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 14 Sep 2017 12:50:29 +0300 Subject: [PATCH] director: Avoid "ring sync timeout" errors when all backends are down doveadm commands were failing with it. Also pending request failures were logged as failing due to ring sync timeout, instead of because no hosts. --- src/director/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/director/main.c b/src/director/main.c index b8c983405f..121cc8fb79 100644 --- a/src/director/main.c +++ b/src/director/main.c @@ -226,7 +226,7 @@ static void director_state_changed(struct director *dir) ARRAY(struct director_request *) new_requests; bool ret; - if (!dir->ring_synced || !mail_hosts_have_usable(dir->mail_hosts)) + if (!dir->ring_synced) return; /* if there are any pending client requests, finish them now */ -- 2.47.3