Skip to content

Commit

Permalink
director: Avoid "ring sync timeout" errors when all backends are down
Browse files Browse the repository at this point in the history
doveadm commands were failing with it. Also pending request failures were
logged as failing due to ring sync timeout, instead of because no hosts.
  • Loading branch information
sirainen authored and cmouse committed Sep 18, 2017
1 parent 68ba222 commit 5a444fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/director/main.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 5a444fd

Please sign in to comment.