dovecot-2.0: dsync: Log an error if dsync server sends invalid r...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 12 17:30:58 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/95de0b0b6171
changeset: 11802:95de0b0b6171
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 12 15:30:55 2010 +0100
description:
dsync: Log an error if dsync server sends invalid reply for FINISH.

diffstat:

 src/dsync/dsync-proxy-client.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 490500f0c09b -r 95de0b0b6171 src/dsync/dsync-proxy-client.c
--- a/src/dsync/dsync-proxy-client.c	Mon Jul 12 15:25:35 2010 +0100
+++ b/src/dsync/dsync-proxy-client.c	Mon Jul 12 15:30:55 2010 +0100
@@ -249,8 +249,12 @@
 
 	if (strcmp(line, "changes") == 0)
 		worker->worker.unexpected_changes = TRUE;
-	else if (strcmp(line, "ok") != 0)
+	else if (strcmp(line, "fail") == 0)
 		success = FALSE;
+	else if (strcmp(line, "ok") != 0) {
+		i_error("Unexpected finish reply: %s", line);
+		success = FALSE;
+	}
 		
 	request->callback.finish(success, request->context);
 }


More information about the dovecot-cvs mailing list