dovecot-2.0: dsync: If worker fails, abort earlier.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 23 16:35:53 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/6ef21adeb61d
changeset: 12028:6ef21adeb61d
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 23 14:35:50 2010 +0100
description:
dsync: If worker fails, abort earlier.
diffstat:
src/dsync/dsync-brain.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 83f98d61bea2 -r 6ef21adeb61d src/dsync/dsync-brain.c
--- a/src/dsync/dsync-brain.c Mon Aug 23 14:30:08 2010 +0100
+++ b/src/dsync/dsync-brain.c Mon Aug 23 14:35:50 2010 +0100
@@ -804,6 +804,12 @@
void dsync_brain_sync(struct dsync_brain *brain)
{
+ if (dsync_worker_has_failed(brain->src_worker) ||
+ dsync_worker_has_failed(brain->dest_worker)) {
+ /* we can't safely continue, especially with backup */
+ return;
+ }
+
if (brain->to != NULL)
timeout_remove(&brain->to);
switch (brain->state) {
More information about the dovecot-cvs
mailing list