[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.147,1.148

cras at dovecot.org cras at dovecot.org
Thu Sep 23 23:27:03 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv16541

Modified Files:
	mail-index.c 
Log Message:
mail_index_map_to_memory() didn't resize record if mapping was already in
memory.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- mail-index.c	21 Sep 2004 14:40:06 -0000	1.147
+++ mail-index.c	23 Sep 2004 20:26:59 -0000	1.148
@@ -637,7 +637,8 @@
 	size_t size, copy_size;
 	unsigned int i, count;
 
-	if (MAIL_INDEX_MAP_IS_IN_MEMORY(map)) {
+	if (MAIL_INDEX_MAP_IS_IN_MEMORY(map) &&
+	    map->hdr->record_size == new_record_size) {
 		map->refcount++;
 		return map;
 	}



More information about the dovecot-cvs mailing list