]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Remove unused DSYNC_MAILBOX_TREES_SYNC_FLAG_MASTER_BRAIN
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Oct 2022 09:57:13 +0000 (12:57 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 31 Oct 2022 16:28:37 +0000 (16:28 +0000)
src/doveadm/dsync/dsync-brain-mailbox-tree.c
src/doveadm/dsync/dsync-mailbox-tree.h

index ced073f983ea7f83363d26afe0bd7c13e83aede7..f9a8d0a4521f213612debc2ba3c4b0cce326137a 100644 (file)
@@ -386,8 +386,7 @@ static void dsync_brain_mailbox_trees_sync(struct dsync_brain *brain)
        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) |
-               (brain->master_brain ? DSYNC_MAILBOX_TREES_SYNC_FLAG_MASTER_BRAIN : 0);
+               (brain->debug ? DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG : 0);
        int ret;
 
        if (brain->no_backup_overwrite)
index a71a5b6473053543955e5381e89f2cb2615dfc93..dc921052ce5d2ad9f9dc9e023228e33f4f6fb26e 100644 (file)
@@ -19,8 +19,6 @@ enum dsync_mailbox_trees_sync_type {
 enum dsync_mailbox_trees_sync_flags {
        /* Enable debugging */
        DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG             = 0x01,
-       /* Show ourself as "master brain" in the debug output */
-       DSYNC_MAILBOX_TREES_SYNC_FLAG_MASTER_BRAIN      = 0x02,
        /* 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