[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.103, 1.104

tss at dovecot.org tss at dovecot.org
Thu Mar 15 16:31:22 EET 2007


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

Modified Files:
	index-storage.c 
Log Message:
Check for the index destroy timeouts a bit less often.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- index-storage.c	6 Mar 2007 19:54:23 -0000	1.103
+++ index-storage.c	15 Mar 2007 14:31:18 -0000	1.104
@@ -197,8 +197,10 @@
 
 	list->refcount--;
 	list->destroy_time = ioloop_time + INDEX_CACHE_TIMEOUT;
-	if (to_index == NULL)
-		to_index = timeout_add(1000, index_removal_timeout, NULL);
+	if (to_index == NULL) {
+		to_index = timeout_add(INDEX_CACHE_TIMEOUT*1000/2,
+				       index_removal_timeout, NULL);
+	}
 }
 
 void index_storage_destroy_unrefed(void)



More information about the dovecot-cvs mailing list