[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.85.2.8, 1.85.2.9

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


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

Modified Files:
      Tag: branch_1_0
	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.85.2.8
retrieving revision 1.85.2.9
diff -u -d -r1.85.2.8 -r1.85.2.9
--- index-storage.c	10 Mar 2007 20:58:42 -0000	1.85.2.8
+++ index-storage.c	15 Mar 2007 14:31:14 -0000	1.85.2.9
@@ -188,8 +188,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