Mercurial > dovecot > core-2.2
changeset 18075:8456ebd4fa80
dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 13 Nov 2014 09:12:38 +0200 |
parents | 3db5fbb216d3 |
children | dc593d4dbeb3 |
files | src/doveadm/dsync/dsync-mailbox-export.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-export.c Thu Nov 13 03:58:51 2014 +0200 +++ b/src/doveadm/dsync/dsync-mailbox-export.c Thu Nov 13 09:12:38 2014 +0200 @@ -363,7 +363,8 @@ 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);