[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.102, 1.103

tss at dovecot.org tss at dovecot.org
Tue Mar 6 21:54:25 EET 2007


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

Modified Files:
	index-storage.c 
Log Message:
If moving to memory fails, make sure we open the index with create flag set.



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- index-storage.c	22 Feb 2007 13:37:29 -0000	1.102
+++ index-storage.c	6 Mar 2007 19:54:23 -0000	1.103
@@ -347,6 +347,7 @@
 		if (mail_index_move_to_memory(ibox->index) < 0) {
 			/* try opening once more. it should be created
 			   directly into memory now. */
+			index_flags |= MAIL_INDEX_OPEN_FLAG_CREATE;
 			ret = mail_index_open(ibox->index, index_flags,
 					      storage->lock_method);
 			if (ret <= 0)



More information about the dovecot-cvs mailing list