]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Directors weren't always marked as restarted when they were.
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Sep 2013 07:12:24 +0000 (10:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Sep 2013 07:12:24 +0000 (10:12 +0300)
src/director/director-connection.c

index fe902c235f4d49fe12c6f2916411b25c3b66f784..36e2b41e25c90769b6bf3af5f547afd3a2d7d6bb 100644 (file)
@@ -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;
                }