The debug status comes from the parent event.
struct dsync_mailbox_tree_sync_ctx *ctx;
const struct dsync_mailbox_tree_sync_change *change;
enum dsync_mailbox_trees_sync_type sync_type;
- enum dsync_mailbox_trees_sync_flags sync_flags =
- (brain->debug ? DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG : 0);
+ enum dsync_mailbox_trees_sync_flags sync_flags = 0;
int ret;
if (brain->no_backup_overwrite)
ctx->sync_type = sync_type;
ctx->sync_flags = sync_flags;
- bool force_debug = (ctx->sync_flags & DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG) != 0;
ctx->event = event_create(parent_event);
- event_set_forced_debug(ctx->event, force_debug);
i_array_init(&ctx->changes, 128);
again:
};
enum dsync_mailbox_trees_sync_flags {
- /* Enable debugging */
- DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG = 0x01,
/* Disable mailbox renaming logic. This is just a kludge that should
be removed once the renaming logic has no more bugs.. */
DSYNC_MAILBOX_TREES_SYNC_FLAG_NO_RENAMES = 0x04
dsync_mailbox_tree_build_guid_hash(tree2, &dup_node1, &dup_node2);
ctx = dsync_mailbox_trees_sync_init(tree1, tree2,
DSYNC_MAILBOX_TREES_SYNC_TYPE_TWOWAY,
- DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG,
- event);
+ 0, event);
while (dsync_mailbox_trees_sync_next(ctx) != NULL) {
}
dsync_mailbox_trees_sync_deinit(&ctx);