[dovecot-cvs] dovecot/src/lib-index mail-cache-transaction.c, 1.29, 1.30

cras at dovecot.org cras at dovecot.org
Fri Oct 15 02:06:51 EEST 2004


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

Modified Files:
	mail-cache-transaction.c 
Log Message:
Holes in cache file were broken



Index: mail-cache-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-transaction.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mail-cache-transaction.c	8 Oct 2004 17:51:48 -0000	1.29
+++ mail-cache-transaction.c	14 Oct 2004 23:06:49 -0000	1.30
@@ -154,6 +154,8 @@
 
 		if (hole.size >= size)
 			break;
+
+		prev_offset = offset;
 		offset = hole.next_offset;
 	}
 	if (offset == 0)
@@ -169,6 +171,7 @@
 		}
 	}
 	hdr->deleted_space -= hole.size;
+	cache->hdr_modified = TRUE;
 
 	hole_r->next_offset = offset;
 	hole_r->size = hole.size;



More information about the dovecot-cvs mailing list