# HG changeset patch # User Timo Sirainen # Date 1137625423 -7200 # Node ID 3b0f9be42126d982b3cdf03a7c6a493113529fe7 # Parent 411f20e72a8f5853a364fc3a00a4ce4729a2cabc Don't try to write to index file if it's in memory. diff -r 411f20e72a8f -r 3b0f9be42126 src/lib-index/mail-index-lock.c --- 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 =