[dovecot-cvs] dovecot/src/lib-storage/index index-sync.c,1.54,1.55

cras at dovecot.org cras at dovecot.org
Sun Feb 5 09:52:44 EET 2006


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

Modified Files:
	index-sync.c 
Log Message:
Keyword comparing still didn't work perfectly when there were no keywords.
This caused some extra unnecessary keyword changes.



Index: index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-sync.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- index-sync.c	14 Jan 2006 18:47:42 -0000	1.54
+++ index-sync.c	5 Feb 2006 07:52:42 -0000	1.55
@@ -279,7 +279,7 @@
 	if (!array_is_created(k1))
 		return !array_is_created(k2) || array_count(k2) == 0;
 	if (!array_is_created(k2))
-		return FALSE;
+		return array_count(k1) == 0;
 
 	/* The arrays may not be sorted, but they usually are. Optimize for
 	   the assumption that they are */



More information about the dovecot-cvs mailing list