[dovecot-cvs] dovecot/src/lib-index mail-index-compress.c,1.21,1.22 mail-tree.c,1.10,1.11
cras at procontrol.fi
cras at procontrol.fi
Wed Nov 6 09:12:49 EET 2002
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.14,1.15 mail-modifylog.c,1.34,1.35 mail-tree.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.15,1.16 imap-envelope.c,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv28084/lib-index
Modified Files:
mail-index-compress.c mail-tree.c
Log Message:
Don't try to truncate in-memory indexes.
Index: mail-index-compress.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-compress.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mail-index-compress.c 29 Oct 2002 17:54:57 -0000 1.21
+++ mail-index-compress.c 6 Nov 2002 07:12:47 -0000 1.22
@@ -16,7 +16,7 @@
i_assert(index->lock_type == MAIL_LOCK_EXCLUSIVE);
- if (index->mmap_full_length <= INDEX_FILE_MIN_SIZE)
+ if (index->mmap_full_length <= INDEX_FILE_MIN_SIZE || index->anon_mmap)
return TRUE;
/* really truncate the file only when it's almost empty */
Index: mail-tree.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-tree.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- mail-tree.c 6 Nov 2002 07:08:04 -0000 1.10
+++ mail-tree.c 6 Nov 2002 07:12:47 -0000 1.11
@@ -403,7 +403,7 @@
i_assert(tree->index->lock_type == MAIL_LOCK_EXCLUSIVE);
- if (tree->mmap_full_length <= MAIL_TREE_MIN_SIZE)
+ if (tree->mmap_full_length <= MAIL_TREE_MIN_SIZE || tree->anon_mmap)
return;
empty_space = tree->mmap_full_length - tree->mmap_used_length;
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.14,1.15 mail-modifylog.c,1.34,1.35 mail-tree.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.15,1.16 imap-envelope.c,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list