[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c, 1.27, 1.28

cras at dovecot.org cras at dovecot.org
Wed May 3 21:59:41 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv21085/lib-storage/index/dbox

Modified Files:
	dbox-uidlist.c 
Log Message:
Fix



Index: dbox-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-uidlist.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- dbox-uidlist.c	27 Apr 2006 12:44:19 -0000	1.27
+++ dbox-uidlist.c	3 May 2006 18:59:38 -0000	1.28
@@ -1153,6 +1153,7 @@
 {
 	/* Note that unless uidlist is locked, it's not guaranteed that this
 	   actually returns a new unused file sequence. */
+	i_assert(uidlist->file_seq_highwater >= uidlist->last_file_seq);
 	return ++uidlist->file_seq_highwater;
 }
 
@@ -1270,6 +1271,8 @@
 
 	if (new_entry->file_seq > ctx->uidlist->last_file_seq)
 		ctx->uidlist->last_file_seq = new_entry->file_seq;
+	if (new_entry->file_seq > ctx->uidlist->file_seq_highwater)
+		ctx->uidlist->file_seq_highwater = new_entry->file_seq;
 	dbox_uidlist_update_last_uid(ctx->uidlist, new_entry);
 
 	entries = array_get(&ctx->uidlist->entries, &count);



More information about the dovecot-cvs mailing list