dovecot: When initial index build wrote dovecot.index file, we a...

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 1 03:14:15 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/adffeec04dcc
changeset: 6341:adffeec04dcc
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 01 03:14:11 2007 +0300
description:
When initial index build wrote dovecot.index file, we assert-crashed.

diffstat:

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

diffs (11 lines):

diff -r 7b71ba1250e3 -r adffeec04dcc src/lib-index/mail-index.c
--- 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 @@ static bool mail_index_open_files(struct
 		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);


More information about the dovecot-cvs mailing list