[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.181,1.182

cras at dovecot.org cras at dovecot.org
Sun Dec 5 05:42:46 EET 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv8938

Modified Files:
	mail-index.c 
Log Message:
Changed assert() to friendly human readable message.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- mail-index.c	5 Dec 2004 02:18:44 -0000	1.181
+++ mail-index.c	5 Dec 2004 03:42:43 -0000	1.182
@@ -1176,8 +1176,12 @@
 
 		/* don't even bother to handle dotlocking without mmap being
 		   disabled. that combination simply doesn't make any sense */
-		i_assert(lock_method != MAIL_INDEX_LOCK_DOTLOCK ||
-			 index->mmap_disable);
+		if (lock_method == MAIL_INDEX_LOCK_DOTLOCK &&
+		    !index->mmap_disable) {
+			i_fatal("lock_method=dotlock and mmap_disable=no "
+				"combination isn't supported. "
+				"You don't _really_ want it anyway.");
+		}
 
 		ret = mail_index_open_files(index, flags);
 		if (ret <= 0)



More information about the dovecot-cvs mailing list