[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.233,1.234

cras at dovecot.org cras at dovecot.org
Sat Jun 17 15:40:37 EEST 2006


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

Modified Files:
	mail-index.c 
Log Message:
mail_index_move_to_memory(): Don't break if the index is already in memory. 
Fixes mbox_min_index_size.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -d -r1.233 -r1.234
--- mail-index.c	8 Jun 2006 16:52:15 -0000	1.233
+++ mail-index.c	17 Jun 2006 12:40:29 -0000	1.234
@@ -1782,6 +1782,9 @@
 	struct mail_index_map *map;
 	int ret = 0;
 
+	if (MAIL_INDEX_IS_IN_MEMORY(index))
+		return 0;
+
 	/* set the index as being into memory */
 	i_free_and_null(index->dir);
 



More information about the dovecot-cvs mailing list