[dovecot-cvs] dovecot/src/lib-index mail-index-data.c,1.34,1.35

cras at procontrol.fi cras at procontrol.fi
Mon Jan 20 16:52:53 EET 2003


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv7093/lib-index

Modified Files:
	mail-index-data.c 
Log Message:
mail-storage.h interface changes, affects pretty much everything.
FETCH, SEARCH, SORT and THREAD handling were pretty much moved from
lib-storage/ to imap/ so adding non-index storages would be much easier now.
Also POP3 server can now be easily implemented with lib-storage.

Not too well tested, and at least one major problem: partial fetching is
_slow_.



Index: mail-index-data.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-data.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- mail-index-data.c	10 Jan 2003 13:36:01 -0000	1.34
+++ mail-index-data.c	20 Jan 2003 14:52:51 -0000	1.35
@@ -139,11 +139,11 @@
 	}
 
 	if (size != 0) {
-		debug_mprotect(data->mmap_base, data->mmap_full_length,
-			       data->index);
-
 		if (pos + size <= data->mmap_used_length)
 			return TRUE;
+
+		debug_mprotect(data->mmap_base, data->mmap_full_length,
+			       data->index);
 
 		if (pos + size <= data->mmap_full_length) {
 			data->mmap_used_length = data->header->used_file_size;




More information about the dovecot-cvs mailing list