Mercurial > dovecot > original-hg > dovecot-2.2
changeset 16786:17389ac3cb66
director: Added more debug logging.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Sep 2013 10:00:48 +0300 |
parents | b135d723acf3 |
children | 22a3ef9a006d |
files | src/director/director-connection.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director-connection.c Fri Sep 20 09:46:31 2013 +0300 +++ b/src/director/director-connection.c Fri Sep 20 10:00:48 2013 +0300 @@ -1122,15 +1122,23 @@ } else { if (seq < host->last_sync_seq) { /* stale SYNC event */ + dir_debug("Ignore stale SYNC event for %s (seq %u < %u)", + host->name, seq, host->last_sync_seq); return FALSE; } else if (host->last_sync_seq != seq || timestamp > host->last_sync_timestamp) { host->last_sync_seq = seq; host->last_sync_timestamp = timestamp; host->last_sync_seq_counter = 1; + dir_debug("Update SYNC for %s (seq=%u, timestamp=%u)", + host->name, seq, timestamp); } else if (++host->last_sync_seq_counter > DIRECTOR_MAX_SYNC_SEQ_DUPLICATES) { /* we've received this too many times already */ + dir_debug("Ignore duplicate #%u SYNC event for %s " + "(seq=%u, timestamp %u <= %u)", + host->name, host->last_sync_seq_counter, seq, + timestamp, host->last_sync_timestamp); return FALSE; }