]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
authorTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2014 07:12:38 +0000 (09:12 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2014 07:12:38 +0000 (09:12 +0200)
This doesn't really do much because exporter shouldn't be writing anything,
but it allows plugins to find out if transactions is coming from dsync.

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

index aff3c0549dcd7687ccd6f8046c645bfb55fd04f2..767ec895235f99c454b2b807a0acdd1fb49e2fb9 100644 (file)
@@ -363,7 +363,8 @@ dsync_mailbox_export_search(struct dsync_mailbox_exporter *exporter)
                wanted_headers = exporter->wanted_headers;
        }
 
-       exporter->trans = mailbox_transaction_begin(exporter->box, 0);
+       exporter->trans = mailbox_transaction_begin(exporter->box,
+                                               MAILBOX_TRANSACTION_FLAG_SYNC);
        search_ctx = mailbox_search_init(exporter->trans, search_args, NULL,
                                         wanted_fields, wanted_headers);
        mail_search_args_unref(&search_args);