dovecot-2.2: dsync: Don't notify replicator process about succes...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 22 14:56:57 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/3984f384257e
changeset: 16387:3984f384257e
user: Timo Sirainen <tss at iki.fi>
date: Wed May 22 14:56:41 2013 +0300
description:
dsync: Don't notify replicator process about successful dsync if the dsync failed.
diffstat:
src/doveadm/dsync/doveadm-dsync.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b05b772ff78f -r 3984f384257e src/doveadm/dsync/doveadm-dsync.c
--- a/src/doveadm/dsync/doveadm-dsync.c Tue May 21 22:57:06 2013 +0300
+++ b/src/doveadm/dsync/doveadm-dsync.c Wed May 22 14:56:41 2013 +0300
@@ -949,7 +949,7 @@
o_stream_close(_ctx->conn->output);
}
- if (ctx->replicator_notify)
+ if (ctx->replicator_notify && _ctx->exit_code == 0)
dsync_replicator_notify(ctx, sync_type, str_c(state_str));
return _ctx->exit_code == 0 ? 0 : -1;
}
More information about the dovecot-cvs
mailing list