[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.65,1.66 mail-index.h,1.47,1.48

cras at procontrol.fi cras at procontrol.fi
Tue Oct 29 08:46:49 EET 2002


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

Modified Files:
	mail-index.c mail-index.h 
Log Message:
mbox locking wasn't working.



Index: mail-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- mail-index.c	28 Oct 2002 09:31:40 -0000	1.65
+++ mail-index.c	29 Oct 2002 06:46:47 -0000	1.66
@@ -248,10 +248,6 @@
 	}
 }
 
-#define MAIL_LOCK_TO_FLOCK(lock_type) \
-        ((lock_type) == MAIL_LOCK_UNLOCK ? F_UNLCK : \
-		(lock_type) == MAIL_LOCK_SHARED ? F_RDLCK : F_WRLCK)
-
 int mail_index_try_lock(MailIndex *index, MailLockType lock_type)
 {
 	int ret;

Index: mail-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- mail-index.h	27 Oct 2002 06:37:18 -0000	1.47
+++ mail-index.h	29 Oct 2002 06:46:47 -0000	1.48
@@ -471,4 +471,9 @@
 	(sizeof(MailIndexHeader) + \
 	 INDEX_MIN_RECORDS_COUNT * sizeof(MailIndexRecord))
 
+/* MailLockType to fcntl() lock type */
+#define MAIL_LOCK_TO_FLOCK(lock_type) \
+        ((lock_type) == MAIL_LOCK_UNLOCK ? F_UNLCK : \
+		(lock_type) == MAIL_LOCK_SHARED ? F_RDLCK : F_WRLCK)
+
 #endif




More information about the dovecot-cvs mailing list