[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.86,1.87
cras at procontrol.fi
cras at procontrol.fi
Wed Apr 16 03:13:52 EEST 2003
- Previous message: [dovecot-cvs] dovecot/src/lib file-dotlock.c,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/auth db-passwd-file.c,1.6,1.7 db-passwd-file.h,1.2,1.3 passdb-passwd-file.c,1.7,1.8 userdb-passwd-file.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv24466/lib-index
Modified Files:
mail-index.c
Log Message:
DEBUG: Don't crash with in-memory indexes
Index: mail-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- mail-index.c 6 Mar 2003 19:23:44 -0000 1.86
+++ mail-index.c 15 Apr 2003 23:13:49 -0000 1.87
@@ -422,9 +422,13 @@
if (index->anon_mmap) {
/* anonymous mmaps are private and don't need any locking */
+#ifdef DEBUG
+ mprotect(index->mmap_base, index->mmap_used_length,
+ PROT_READ|PROT_WRITE);
+#endif
mail_index_update_header_changes(index);
- index->lock_type = lock_type;
+ index->lock_type = lock_type;
debug_mprotect(index->mmap_base, index->mmap_full_length,
index);
return TRUE;
- Previous message: [dovecot-cvs] dovecot/src/lib file-dotlock.c,1.3,1.4
- Next message: [dovecot-cvs] dovecot/src/auth db-passwd-file.c,1.6,1.7 db-passwd-file.h,1.2,1.3 passdb-passwd-file.c,1.7,1.8 userdb-passwd-file.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list