[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.176, 1.177

cras at dovecot.org cras at dovecot.org
Fri Jan 6 16:50:38 EET 2006


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

Modified Files:
	mbox-sync.c 
Log Message:
We assumed that keyword index arrays were always sorted. This isn't always
the case. Caused unneeded keyword updates.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- mbox-sync.c	30 Dec 2005 13:05:14 -0000	1.176
+++ mbox-sync.c	6 Jan 2006 14:50:35 -0000	1.177
@@ -517,7 +517,8 @@
 		}
 
 		if ((idx_mail.flags & MAIL_INDEX_MAIL_FLAG_DIRTY) == 0 &&
-		    !array_cmp(&idx_mail.keywords, &mail_ctx->mail.keywords))
+		    !index_keyword_array_cmp(&idx_mail.keywords,
+					     &mail_ctx->mail.keywords))
 			mbox_sync_update_index_keywords(mail_ctx);
 		t_pop();
 



More information about the dovecot-cvs mailing list