[dovecot-cvs] dovecot/src/imap namespace.c,1.17,1.18

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


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv32161/imap

Modified Files:
	namespace.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: namespace.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/namespace.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- namespace.c	25 Nov 2006 22:17:40 -0000	1.17
+++ namespace.c	6 Dec 2006 15:08:35 -0000	1.18
@@ -1,6 +1,7 @@
 /* Copyright (C) 2003 Timo Sirainen */
 
 #include "common.h"
+#include "file-lock.h"
 #include "commands.h"
 #include "namespace.h"
 
@@ -25,7 +26,7 @@
 static struct namespace *
 namespace_add_env(pool_t pool, const char *data, unsigned int num,
 		  const char *user, enum mail_storage_flags flags,
-		  enum mail_storage_lock_method lock_method)
+		  enum file_lock_method lock_method)
 {
         struct namespace *ns;
         const char *sep, *type, *prefix;
@@ -88,7 +89,7 @@
 {
 	struct namespace *namespaces, *ns, **ns_p;
 	enum mail_storage_flags flags;
-        enum mail_storage_lock_method lock_method;
+        enum file_lock_method lock_method;
 	const char *mail, *data;
 	unsigned int i;
 



More information about the dovecot-cvs mailing list