[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.135, 1.136

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


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

Modified Files:
	maildir-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: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- maildir-storage.c	3 Dec 2006 13:29:59 -0000	1.135
+++ maildir-storage.c	6 Dec 2006 15:08:30 -0000	1.136
@@ -137,7 +137,7 @@
 static struct mail_storage *
 maildir_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 maildir_storage *storage;
 	struct index_storage *istorage;
@@ -150,7 +150,7 @@
 	if (maildir_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;
 
 	/* normally the maildir is created in verify_inbox() */
 	if ((flags & MAIL_STORAGE_FLAG_NO_AUTOCREATE) != 0) {



More information about the dovecot-cvs mailing list