]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Error handling fixes.
authorTimo Sirainen <tss@iki.fi>
Mon, 15 Feb 2010 03:22:19 +0000 (05:22 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 15 Feb 2010 03:22:19 +0000 (05:22 +0200)
--HG--
branch : HEAD

src/dsync/dsync-worker-local.c
src/dsync/dsync-worker.c

index ff9de9282c27653ef13ad9ca14e8222037ba9334..82a6c308f9b4d8be087b33dbfc92b01e919c4c28 100644 (file)
@@ -738,7 +738,8 @@ static int iter_local_mailbox_open(struct local_dsync_worker_msg_iter *iter)
 
        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;
        }
index 0d3e3f3d063d93a10da48d630c6003ea50afe6b1..1ecf2f0e352f4d82e847849c72c000831ace8217 100644 (file)
@@ -224,6 +224,8 @@ void dsync_worker_msg_get(struct dsync_worker *worker,
 
        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,