]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 3 Jan 2018 10:40:29 +0000 (12:40 +0200)
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 ef4ed333ee7c56475a235f96045ef313ddc80f85..2d5879e76988afaa651b79f4e6c37226924603fa 100644 (file)
@@ -2594,6 +2594,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;