From: Timo Sirainen Date: Fri, 20 Sep 2013 07:12:24 +0000 (+0300) Subject: director: Directors weren't always marked as restarted when they were. X-Git-Tag: 2.2.6~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84304cae9fe7c8465e57d057bb9ee63d79997a72;p=thirdparty%2Fdovecot%2Fcore.git director: Directors weren't always marked as restarted when they were. --- diff --git a/src/director/director-connection.c b/src/director/director-connection.c index fe902c235f..36e2b41e25 100644 --- a/src/director/director-connection.c +++ b/src/director/director-connection.c @@ -644,8 +644,8 @@ static bool director_cmd_director(struct director_connection *conn, /* already have this. just reset its last_network_failure timestamp, since it might be up now. */ host->last_network_failure = 0; - if (host->last_seq != 0) { - /* it also may have been restarted, reset last_seq */ + if (host->last_seq != 0 || host->last_sync_seq != 0) { + /* it also may have been restarted, reset its state */ director_host_restarted(host); forward = TRUE; }