dovecot-1.1: If indexes had been reset, extension changes may ha...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 10 03:01:14 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/dd87447492ec
changeset: 8187:dd87447492ec
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 09 21:01:09 2009 -0400
description:
If indexes had been reset, extension changes may have been written wrong.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-transaction-log-append.c |    4 ++--

diffs (21 lines):

diff -r 0588009a7317 -r dd87447492ec src/lib-index/mail-transaction-log-append.c
--- a/src/lib-index/mail-transaction-log-append.c	Thu Mar 05 17:29:21 2009 -0500
+++ b/src/lib-index/mail-transaction-log-append.c	Mon Mar 09 21:01:09 2009 -0400
@@ -233,7 +233,7 @@ static void log_append_ext_intro(struct 
 	i_assert(ext_id != (uint32_t)-1);
 
 	if (t->reset ||
-	    !mail_index_map_get_ext_idx(t->view->map, ext_id, &idx)) {
+	    !mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {
 		/* new extension */
 		idx = (uint32_t)-1;
 	}
@@ -271,7 +271,7 @@ static void log_append_ext_intro(struct 
 	} else if (idx != (uint32_t)-1) {
 		/* use the existing reset_id */
 		const struct mail_index_ext *map_ext =
-			array_idx(&t->view->map->extensions, idx);
+			array_idx(&t->view->index->map->extensions, idx);
 		intro->reset_id = map_ext->reset_id;
 	} else {
 		/* new extension, reset_id defaults to 0 */


More information about the dovecot-cvs mailing list