[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.85.2.3, 1.85.2.4

tss at dovecot.org tss at dovecot.org
Fri Nov 3 09:03:06 UTC 2006


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

Modified Files:
      Tag: branch_1_0
	index-storage.c 
Log Message:
Fix



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.85.2.3
retrieving revision 1.85.2.4
diff -u -d -r1.85.2.3 -r1.85.2.4
--- index-storage.c	13 Oct 2006 15:22:13 -0000	1.85.2.3
+++ index-storage.c	3 Nov 2006 09:03:03 -0000	1.85.2.4
@@ -207,14 +207,14 @@
 		return;
 
 	for (arr = t_strsplit_spaces(fields, " ,"); *arr != NULL; arr++) {
-		for (i = 0; i < MAIL_CACHE_FIELD_COUNT; i++) {
+		for (i = 0; i < MAIL_INDEX_CACHE_FIELD_COUNT; i++) {
 			if (strcasecmp(global_cache_fields[i].name,
 				       *arr) == 0) {
 				global_cache_fields[i].decision = dec;
 				break;
 			}
 		}
-		if (i == MAIL_CACHE_FIELD_COUNT) {
+		if (i == MAIL_INDEX_CACHE_FIELD_COUNT) {
 			i_error("%s: Invalid cache field name '%s', ignoring ",
 				set, *arr);
 		}
@@ -252,7 +252,7 @@
 	memcpy(ibox->cache_fields, global_cache_fields,
 	       sizeof(global_cache_fields));
 	mail_cache_register_fields(cache, ibox->cache_fields,
-				   MAIL_CACHE_FIELD_COUNT);
+				   MAIL_INDEX_CACHE_FIELD_COUNT);
 }
 
 void index_storage_lock_notify(struct index_mailbox *ibox,



More information about the dovecot-cvs mailing list