dovecot-2.2: lib-storage: Refresh private index before syncing t...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 15 15:33:25 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/58fdb8ded6b7
changeset: 15485:58fdb8ded6b7
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 15 15:33:12 2012 +0200
description:
lib-storage: Refresh private index before syncing to make sure we see latest changes.

diffstat:

 src/lib-storage/index/index-sync-pvt.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r eed88e231043 -r 58fdb8ded6b7 src/lib-storage/index/index-sync-pvt.c
--- a/src/lib-storage/index/index-sync-pvt.c	Sat Dec 15 14:37:20 2012 +0200
+++ b/src/lib-storage/index/index-sync-pvt.c	Sat Dec 15 15:33:12 2012 +0200
@@ -116,7 +116,8 @@
 	int ret;
 
 	/* open a view for the latest version of the index */
-	if (mail_index_refresh(box->index) < 0) {
+	if (mail_index_refresh(box->index) < 0 ||
+	    mail_index_refresh(box->index_pvt) < 0) {
 		mailbox_set_index_error(box);
 		return -1;
 	}


More information about the dovecot-cvs mailing list