[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.29,1.30
    cras at dovecot.org 
    cras at dovecot.org
       
    Fri Sep  3 23:53:20 EEST 2004
    
    
  
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv29559/lib-index
Modified Files:
	mail-index-lock.c 
Log Message:
a few more asserts
Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mail-index-lock.c	3 Sep 2004 20:50:02 -0000	1.29
+++ mail-index-lock.c	3 Sep 2004 20:53:18 -0000	1.30
@@ -78,8 +78,9 @@
 		if ((ret2 = mail_index_refresh(index)) < 0)
 			return -1;
 		if (ret > 0 && ret2 == 0) {
-			if (mail_index_lock_mprotect(index,
-						     index->lock_type) < 0)
+			i_assert(lock_type == F_RDLCK);
+			i_assert(index->lock_type == F_RDLCK);
+			if (mail_index_lock_mprotect(index, lock_type) < 0)
 				return -1;
 			return 1;
 		}
    
    
More information about the dovecot-cvs
mailing list