[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.200,1.201

cras at dovecot.org cras at dovecot.org
Tue May 10 22:33:21 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv9877

Modified Files:
	mail-index.c 
Log Message:
Fix to mmap_disable=yes syncing



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- mail-index.c	29 Apr 2005 12:02:33 -0000	1.200
+++ mail-index.c	10 May 2005 19:33:18 -0000	1.201
@@ -839,10 +839,12 @@
 	index->map = NULL;
 
 	if (sync_to_index) {
-		/* make sure log file offsets get copied. most of the other
-		   fields should stay the same. */
+		/* make sure we did everything right. note that although the
+		   message counts should be equal, the flag counters may not */
 		i_assert(hdr.messages_count == (*map)->hdr.messages_count);
-		(*map)->hdr = hdr;
+		i_assert(hdr.log_file_seq == (*map)->hdr.log_file_seq);
+		i_assert(hdr.log_file_int_offset == (*map)->hdr.log_file_int_offset);
+		i_assert(hdr.log_file_ext_offset == (*map)->hdr.log_file_ext_offset);
 	}
 
 	return ret < 0 ? -1 : 1;



More information about the dovecot-cvs mailing list