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

cras at procontrol.fi cras at procontrol.fi
Mon Jul 7 02:55:24 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv16212/lib-storage/index/mbox

Modified Files:
	mbox-storage.c 
Log Message:
Destroy all unused indexes 10 seconds after use. Before we destroyed them
only when opening a new index.



Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- mbox-storage.c	1 Jul 2003 18:48:48 -0000	1.54
+++ mbox-storage.c	6 Jul 2003 22:55:22 -0000	1.55
@@ -343,8 +343,8 @@
 		index_storage_add(index);
 	}
 
-	ibox = index_storage_init(storage, &mbox_mailbox, index,
-				  name, readonly, fast);
+	ibox = index_storage_mailbox_init(storage, &mbox_mailbox, index,
+					  name, readonly, fast);
 	if (ibox != NULL)
 		ibox->expunge_locked = mbox_expunge_locked;
 	return (struct mailbox *) ibox;
@@ -688,7 +688,7 @@
 	}
 	ibox->index->set_lock_notify_callback(ibox->index, NULL, NULL);
 
-	return index_storage_close(box) && !failed;
+	return index_storage_mailbox_free(box) && !failed;
 }
 
 static void mbox_storage_auto_sync(struct mailbox *box,



More information about the dovecot-cvs mailing list