diff src/lib-index/mail-index.c @ 6165:6418139447fa HEAD

Created a new struct mail_index_record_map which can be shared by multiple mail_index_maps. This avoids having to copy records when appending new messages.
author Timo Sirainen <tss@iki.fi>
date Fri, 03 Aug 2007 03:22:04 +0300
parents 8da2881df0dc
children 840bd34df909
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Thu Aug 02 19:06:34 2007 +0300
+++ b/src/lib-index/mail-index.c	Fri Aug 03 03:22:04 2007 +0300
@@ -358,7 +358,7 @@
 	if (MAIL_INDEX_IS_IN_MEMORY(index))
 		return 0;
 
-	i_assert(index->map == NULL || index->map->lock_id == 0);
+	i_assert(index->map == NULL || index->map->rec_map->lock_id == 0);
 	ret = mail_index_map(index, MAIL_INDEX_SYNC_HANDLER_HEAD);
 	if (ret == 0) {
 		/* it's corrupted - recreate it */