dovecot: Don't assert-crash if uidvalidity wasn't set in first s...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 27 19:13:52 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/3d7b93aef6b3
changeset: 6326:3d7b93aef6b3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 27 19:12:18 2007 +0300
description:
Don't assert-crash if uidvalidity wasn't set in first sync.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-sync-update.c |    2 +-

diffs (12 lines):

diff -r 3d48109409bf -r 3d7b93aef6b3 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c	Mon Aug 27 18:43:54 2007 +0300
+++ b/src/lib-index/mail-index-sync-update.c	Mon Aug 27 19:12:18 2007 +0300
@@ -794,7 +794,7 @@ int mail_index_sync_map(struct mail_inde
 #ifdef DEBUG
 	mail_index_map_check(map);
 #endif
-	i_assert(map->hdr.indexid == index->indexid);
+	i_assert(map->hdr.indexid == index->indexid || map->hdr.indexid == 0);
 
 	/* transaction log tracks internally the current tail offset.
 	   besides using header updates, it also updates the offset to skip


More information about the dovecot-cvs mailing list