[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
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,
1.56, 1.57 index-mail.c, 1.89, 1.90 index-mail.h, 1.36,
1.37 index-storage.c, 1.81, 1.82 index-storage.h, 1.97, 1.98
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.63,
1.64 mail-index.c, 1.219, 1.220 mail-index.h, 1.157, 1.158
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 =
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,
1.56, 1.57 index-mail.c, 1.89, 1.90 index-mail.h, 1.36,
1.37 index-storage.c, 1.81, 1.82 index-storage.h, 1.97, 1.98
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.63,
1.64 mail-index.c, 1.219, 1.220 mail-index.h, 1.157, 1.158
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list