[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c,1.32,1.33

cras at procontrol.fi cras at procontrol.fi
Sun Jun 15 06:20:14 EEST 2003


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

Modified Files:
	index-storage.c 
Log Message:
Make sure we unlock index before unreferencing it, since it's not actually
closed at that time



Index: index-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- index-storage.c	14 Jun 2003 17:38:06 -0000	1.32
+++ index-storage.c	15 Jun 2003 02:20:12 -0000	1.33
@@ -335,6 +335,9 @@
 {
 	struct index_mailbox *ibox = (struct index_mailbox *) box;
 
+	/* make sure we're unlocked */
+	(void)ibox->index->set_lock(ibox->index, MAIL_LOCK_UNLOCK);
+
 	index_mailbox_check_remove_all(ibox);
 	if (ibox->index != NULL)
 		index_storage_unref(ibox->index);



More information about the dovecot-cvs mailing list