dovecot-2.1: director: When another director reconnects, reset i...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 20 15:05:12 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/798b5e1609e5
changeset: 14452:798b5e1609e5
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 20 15:04:58 2012 +0300
description:
director: When another director reconnects, reset its "last received seq".
This fixes some problems where HOST updates and others were thought as
already being received after the originating director was restarted.

diffstat:

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

diffs (12 lines):

diff -r 45be27ff3414 -r 798b5e1609e5 src/director/director-connection.c
--- a/src/director/director-connection.c	Fri Apr 20 11:22:26 2012 +0300
+++ b/src/director/director-connection.c	Fri Apr 20 15:04:58 2012 +0300
@@ -571,6 +571,8 @@
 		/* already have this. just reset its last_network_failure
 		   timestamp, since it might be up now. */
 		host->last_network_failure = 0;
+		/* it also may have been restarted, so reset last_seq */
+		host->last_seq = 0;
 		return TRUE;
 	}
 


More information about the dovecot-cvs mailing list