dovecot-2.2: mdbox_deleted: Index was synced with wrong flags.

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 8 17:40:19 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/02a746fd9830
changeset: 16950:02a746fd9830
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 08 16:40:13 2013 +0100
description:
mdbox_deleted: Index was synced with wrong flags.

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 23b55e448784 -r 02a746fd9830 src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c
--- a/src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c	Fri Nov 08 16:39:52 2013 +0100
+++ b/src/lib-storage/index/dbox-multi/mdbox-deleted-storage.c	Fri Nov 08 16:40:13 2013 +0100
@@ -153,13 +153,14 @@
 }
 
 static int mdbox_deleted_sync(struct mdbox_mailbox *mbox,
-			      enum mdbox_sync_flags flags)
+			      enum mdbox_sync_flags flags ATTR_UNUSED)
 {
         struct mail_index_sync_ctx *index_sync_ctx;
 	struct mail_index_view *sync_view;
 	struct mail_index_transaction *trans;
 	struct mdbox_mail_index_record rec;
 	struct mdbox_map_mail_index_record map_rec;
+	enum mail_index_sync_flags sync_flags;
 	uint16_t refcount;
 	uint32_t map_seq, map_count, seq, uid = 0;
 	int ret = 0;
@@ -185,8 +186,9 @@
 	memset(&rec, 0, sizeof(rec));
 	rec.save_date = ioloop_time;
 
+	sync_flags = index_storage_get_sync_flags(&mbox->box);
 	if (mail_index_sync_begin(mbox->box.index, &index_sync_ctx,
-				  &sync_view, &trans, flags) < 0) {
+				  &sync_view, &trans, sync_flags) < 0) {
 		mailbox_set_index_error(&mbox->box);
 		return -1;
 	}


More information about the dovecot-cvs mailing list