[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.26, 1.27

tss at dovecot.org tss at dovecot.org
Wed Dec 6 15:08:31 UTC 2006


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

Modified Files:
	dbox-storage.c 
Log Message:
Lock handling changes. Everything goes through file-lock API now and there's
only a single enum listing the different lock methods. This change exposed
some unneeded (or possibly even wrong?) unlock calls in index file handling
which were fixed.



Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- dbox-storage.c	3 Dec 2006 13:29:56 -0000	1.26
+++ dbox-storage.c	6 Dec 2006 15:08:29 -0000	1.27
@@ -82,7 +82,7 @@
 static struct mail_storage *
 dbox_create(const char *data, const char *user,
 	    enum mail_storage_flags flags,
-	    enum mail_storage_lock_method lock_method)
+	    enum file_lock_method lock_method)
 {
 	struct dbox_storage *storage;
 	struct index_storage *istorage;
@@ -95,7 +95,7 @@
 	if (dbox_get_list_settings(&list_set, data, flags) < 0)
 		return NULL;
 	list_set.mail_storage_flags = &flags;
-	list_set.mail_storage_lock_method = &lock_method;
+	list_set.lock_method = &lock_method;
 
 	if ((flags & MAIL_STORAGE_FLAG_NO_AUTOCREATE) != 0) {
 		if (stat(list_set.root_dir, &st) < 0) {



More information about the dovecot-cvs mailing list