]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Add missing transaction flags when performing UID renumbering
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 9 Aug 2017 10:17:15 +0000 (13:17 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Wed, 9 Aug 2017 12:43:42 +0000 (15:43 +0300)
The transaction didn't have MAILBOX_TRANSACTION_FLAG_SYNC or
MAILBOX_TRANSACTION_FLAG_NO_NOTIFY (with DSYNC_BRAIN_FLAG_NO_NOTIFY).

This caused replication-dsync to unnecessarily trigger another dsync
replication notification.

src/doveadm/dsync/dsync-mailbox-import.c

index 7129fb2e73941f8042fe4e2e180c621b1ed26ebd..b4272927e03e5d8255d8423b494f6d4432709dec 100644 (file)
@@ -2585,6 +2585,7 @@ reassign_uids_in_seq_range(struct dsync_mailbox_importer *importer,
 {
        struct mailbox *box = importer->box;
        const enum mailbox_transaction_flags trans_flags =
+               importer->transaction_flags |
                MAILBOX_TRANSACTION_FLAG_EXTERNAL |
                MAILBOX_TRANSACTION_FLAG_ASSIGN_UIDS;
        struct mailbox_transaction_context *trans;