[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.51,1.52

cras at dovecot.org cras at dovecot.org
Thu Jan 19 01:03:45 EET 2006


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

Modified Files:
	mail-index-lock.c 
Log Message:
Don't try to write to index file if it's in memory.



Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- mail-index-lock.c	13 Jan 2006 20:26:13 -0000	1.51
+++ mail-index-lock.c	18 Jan 2006 23:03:43 -0000	1.52
@@ -370,6 +370,9 @@
 	struct mail_index_map *map = index->map;
 	unsigned int base_size;
 
+	if (MAIL_INDEX_IS_IN_MEMORY(index))
+		return 0;
+
 	/* write records. */
 	if (map->write_seq_first != 0) {
 		size_t rec_offset =



More information about the dovecot-cvs mailing list