]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Avoid "ring sync timeout" errors when all backends are down
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 14 Sep 2017 09:50:29 +0000 (12:50 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 18 Sep 2017 07:00:32 +0000 (10:00 +0300)
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

index b8c983405f87912b2ec846d2583612ca41a29fdb..121cc8fb79888ff170eca4d03536d981962f261a 100644 (file)
@@ -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 */