[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.192,1.193

cras at dovecot.org cras at dovecot.org
Thu Mar 24 22:28:30 EET 2005


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

Modified Files:
	mail-index.c 
Log Message:
mail_index_write_base_header() didn't update the header in memory with
mmap_disable=no. It's used only with error correction, so after failure
trying to reopen index failed every time.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- mail-index.c	12 Mar 2005 18:16:29 -0000	1.192
+++ mail-index.c	24 Mar 2005 20:28:28 -0000	1.193
@@ -1078,6 +1078,7 @@
 		memcpy(index->map->mmap_base, hdr, hdr_size);
 		if (msync(index->map->mmap_base, hdr_size, MS_SYNC) < 0)
 			return mail_index_set_syscall_error(index, "msync()");
+		index->map->hdr = *hdr;
 	} else {
 		if (pwrite_full(index->fd, hdr, hdr_size, 0) < 0) {
 			mail_index_set_syscall_error(index, "pwrite_full()");



More information about the dovecot-cvs mailing list