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

cras at procontrol.fi cras at procontrol.fi
Tue Jan 21 07:35:09 EET 2003


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

Modified Files:
	mail-index-data.c 
Log Message:
shouldn't have moved the debug_mprotect()



Index: mail-index-data.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-data.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- mail-index-data.c	20 Jan 2003 14:52:51 -0000	1.35
+++ mail-index-data.c	21 Jan 2003 05:35:06 -0000	1.36
@@ -139,11 +139,11 @@
 	}
 
 	if (size != 0) {
-		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_used_length)
+			return TRUE;
 
 		if (pos + size <= data->mmap_full_length) {
 			data->mmap_used_length = data->header->used_file_size;




More information about the dovecot-cvs mailing list