changeset 6341:adffeec04dcc HEAD

When initial index build wrote dovecot.index file, we assert-crashed.
author Timo Sirainen <tss@iki.fi>
date Sat, 01 Sep 2007 03:14:11 +0300
parents 7b71ba1250e3
children 702f13f44c5e
files src/lib-index/mail-index.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Sat Sep 01 03:04:02 2007 +0300
+++ b/src/lib-index/mail-index.c	Sat Sep 01 03:14:11 2007 +0300
@@ -419,6 +419,7 @@
 		if (index->indexid == 0) {
 			/* create a new indexid for us */
 			index->indexid = ioloop_time;
+			index->map->hdr.indexid = index->indexid;
 		}
 
 		ret = mail_transaction_log_create(index->log);