~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/dsync/dsync-brain-mailbox-tree.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2015-05-24 15:01:19 UTC
  • mto: (4.1.53 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20150524150119-hsh6cbr1fqseapga
Tags: upstream-2.2.18
ImportĀ upstreamĀ versionĀ 2.2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                if (dsync_mailbox_tree_fill(brain->local_mailbox_tree, ns,
59
59
                                            brain->sync_box,
60
60
                                            brain->sync_box_guid,
61
 
                                            brain->exclude_mailboxes) < 0)
 
61
                                            brain->exclude_mailboxes,
 
62
                                            &brain->mail_error) < 0) {
62
63
                        brain->failed = TRUE;
 
64
                        break;
 
65
                }
63
66
        }
64
67
 
65
68
        brain->local_tree_iter =
300
303
                                            brain->remote_mailbox_tree,
301
304
                                            sync_type, sync_flags);
302
305
        while ((change = dsync_mailbox_trees_sync_next(ctx)) != NULL) {
303
 
                if (dsync_brain_mailbox_tree_sync_change(brain, change) < 0)
 
306
                if (dsync_brain_mailbox_tree_sync_change(brain, change,
 
307
                                                         &brain->mail_error) < 0) {
304
308
                        brain->failed = TRUE;
 
309
                        break;
 
310
                }
305
311
        }
306
312
        dsync_mailbox_trees_sync_deinit(&ctx);
307
313
}