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

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 10 03:00:53 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/2a3fd0d46bc6
changeset: 8807:2a3fd0d46bc6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 09 21:00:48 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 3cebcc8a3f11 -r 2a3fd0d46bc6 src/lib-index/mail-transaction-log-append.c
--- a/src/lib-index/mail-transaction-log-append.c	Mon Mar 09 20:17:52 2009 -0400
+++ b/src/lib-index/mail-transaction-log-append.c	Mon Mar 09 21:00:48 2009 -0400
@@ -244,7 +244,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;
 	}
@@ -283,7 +283,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