dovecot-2.2: dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for e...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 13 07:13:54 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/8456ebd4fa80
changeset: 18075:8456ebd4fa80
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 13 09:12:38 2014 +0200
description:
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.
diffstat:
src/doveadm/dsync/dsync-mailbox-export.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 3db5fbb216d3 -r 8456ebd4fa80 src/doveadm/dsync/dsync-mailbox-export.c
--- 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);
More information about the dovecot-cvs
mailing list