dovecot-2.0: dsync: Error handling fixes.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 15 05:38:45 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/6a8db6824157
changeset: 10727:6a8db6824157
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 15 05:22:19 2010 +0200
description:
dsync: Error handling fixes.
diffstat:
src/dsync/dsync-worker-local.c | 3 ++-
src/dsync/dsync-worker.c | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 44759fb882aa -r 6a8db6824157 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c Mon Feb 15 05:19:20 2010 +0200
+++ b/src/dsync/dsync-worker-local.c Mon Feb 15 05:22:19 2010 +0200
@@ -738,7 +738,8 @@
guid = &iter->mailboxes[iter->mailbox_idx];
if (local_mailbox_open(worker, guid, &box) < 0) {
- i_error("msg iteration failed: Couldn't open mailbox");
+ i_error("msg iteration failed: Couldn't open mailbox %s",
+ dsync_guid_to_str(guid));
iter->iter.failed = TRUE;
return -1;
}
diff -r 44759fb882aa -r 6a8db6824157 src/dsync/dsync-worker.c
--- a/src/dsync/dsync-worker.c Mon Feb 15 05:19:20 2010 +0200
+++ b/src/dsync/dsync-worker.c Mon Feb 15 05:22:19 2010 +0200
@@ -224,6 +224,8 @@
if (!worker->failed)
worker->v.msg_get(worker, mailbox, uid, callback, context);
+ else
+ callback(DSYNC_MSG_GET_RESULT_FAILED, NULL, context);
}
void dsync_worker_finish(struct dsync_worker *worker,
More information about the dovecot-cvs
mailing list