From: Timo Sirainen Date: Thu, 14 Sep 2017 09:50:29 +0000 (+0300) Subject: director: Avoid "ring sync timeout" errors when all backends are down X-Git-Tag: 2.3.0.rc1~1006 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a444fdfabcc0c75708c21e84dc8b87eddab7335;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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 */