dovecot-2.2: director: Added more debug logging.

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 20 10:01:02 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/17389ac3cb66
changeset: 16786:17389ac3cb66
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 20 10:00:48 2013 +0300
description:
director: Added more debug logging.

diffstat:

 src/director/director-connection.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r b135d723acf3 -r 17389ac3cb66 src/director/director-connection.c
--- 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;
 		}
 


More information about the dovecot-cvs mailing list