Mercurial > dovecot > core-2.2
diff src/director/director-connection.c @ 16699:9531ec8afe8b
director: Reset last-seen-sync-sequence after remote director restarts.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 21 Aug 2013 23:30:07 +0300 |
parents | f7a37b169f4a |
children | 17389ac3cb66 |
line wrap: on
line diff
--- a/src/director/director-connection.c Wed Aug 21 20:03:13 2013 +0300 +++ b/src/director/director-connection.c Wed Aug 21 23:30:07 2013 +0300 @@ -405,7 +405,7 @@ conn->host->removed = FALSE; director_host_ref(conn->host); /* make sure we don't keep old sequence values across restarts */ - conn->host->last_seq = 0; + director_host_restarted(conn->host); next_comm_attempt = conn->host->last_protocol_failure + DIRECTOR_PROTOCOL_FAILURE_RETRY_SECS; @@ -646,7 +646,7 @@ host->last_network_failure = 0; if (host->last_seq != 0) { /* it also may have been restarted, reset last_seq */ - host->last_seq = 0; + director_host_restarted(host); forward = TRUE; } } else { @@ -1591,7 +1591,7 @@ i_assert(!host->removed); /* make sure we don't keep old sequence values across restarts */ - host->last_seq = 0; + director_host_restarted(host); conn = director_connection_init_common(dir, fd); conn->name = i_strdup_printf("%s/out", host->name);