dovecot-2.2: dsync: Don't log about remote dsync status if we're...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 24 08:07:05 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/c05773011313
changeset: 15897:c05773011313
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 24 08:06:51 2013 +0200
description:
dsync: Don't log about remote dsync status if we're not doing a remote sync.

diffstat:

 src/doveadm/dsync/doveadm-dsync.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 0ceb0029a781 -r c05773011313 src/doveadm/dsync/doveadm-dsync.c
--- a/src/doveadm/dsync/doveadm-dsync.c	Fri Feb 22 16:42:23 2013 +0200
+++ b/src/doveadm/dsync/doveadm-dsync.c	Sun Feb 24 08:06:51 2013 +0200
@@ -486,7 +486,8 @@
 		remote_errors_logged = ctx->err_stream->v_offset > 0;
 		i_stream_destroy(&ctx->err_stream);
 	}
-	cmd_dsync_log_remote_status(status, remote_errors_logged);
+	if (ctx->remote)
+		cmd_dsync_log_remote_status(status, remote_errors_logged);
 	if (ctx->io_err != NULL)
 		io_remove(&ctx->io_err);
 	if (ctx->fd_err != -1)


More information about the dovecot-cvs mailing list