changeset 3910:3b0f9be42126 HEAD

Don't try to write to index file if it's in memory.
author Timo Sirainen <tss@iki.fi>
date Thu, 19 Jan 2006 01:03:43 +0200
parents 411f20e72a8f
children 3a2fe49912f3
files src/lib-index/mail-index-lock.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-lock.c	Thu Jan 19 00:16:40 2006 +0200
+++ b/src/lib-index/mail-index-lock.c	Thu Jan 19 01:03:43 2006 +0200
@@ -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 =