dovecot-2.2: lib-storage: Fixed earlier LAYOUT=index change to r...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 8 08:34:38 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/6252183ada83
changeset: 17912:6252183ada83
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 08 11:33:50 2014 +0300
description:
lib-storage: Fixed earlier LAYOUT=index change to refresh index before opening a view to it.
Fixes an assert-crash.

diffstat:

 src/lib-storage/list/mailbox-list-index-backend.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 71b010a63bae -r 6252183ada83 src/lib-storage/list/mailbox-list-index-backend.c
--- a/src/lib-storage/list/mailbox-list-index-backend.c	Tue Oct 07 22:24:21 2014 +0000
+++ b/src/lib-storage/list/mailbox-list-index-backend.c	Wed Oct 08 11:33:50 2014 +0300
@@ -165,6 +165,8 @@
 			i_panic("mailbox list index: lost uid=%u", node->uid);
 		}
 	} else {
+		if (mailbox_list_index_refresh(&list->list) < 0)
+			return -1;
 		view = mail_index_view_open(ilist->index);
 		ret = index_list_get_refreshed_node_seq(list, view, name, &node, &seq);
 		if (ret < 0) {


More information about the dovecot-cvs mailing list