[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.85.2.6, 1.85.2.7

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


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

Modified Files:
      Tag: branch_1_0
	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.85.2.6
retrieving revision 1.85.2.7
diff -u -d -r1.85.2.6 -r1.85.2.7
--- index-storage.c	22 Feb 2007 13:37:32 -0000	1.85.2.6
+++ index-storage.c	6 Mar 2007 19:54:20 -0000	1.85.2.7
@@ -362,6 +362,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,
 					      lock_method);
 			if (ret <= 0)



More information about the dovecot-cvs mailing list