[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.230.2.3, 1.230.2.4

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


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

Modified Files:
      Tag: branch_1_0
	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.230.2.3
retrieving revision 1.230.2.4
diff -u -d -r1.230.2.3 -r1.230.2.4
--- mail-index.c	28 May 2006 21:18:27 -0000	1.230.2.3
+++ mail-index.c	17 Jun 2006 12:40:28 -0000	1.230.2.4
@@ -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