[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.30,1.31
cras at procontrol.fi
cras at procontrol.fi
Wed Apr 23 20:51:50 EEST 2003
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv24222/lib-index
Modified Files:
mail-index-open.c
Log Message:
Compile fix
Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- mail-index-open.c 23 Apr 2003 13:23:14 -0000 1.30
+++ mail-index-open.c 23 Apr 2003 16:51:48 -0000 1.31
@@ -130,7 +130,8 @@
if (!rebuilt) {
/* sync ourself. do it before updating cache and compression
which may happen because of this. */
- if (!index->sync_and_lock(index, MAIL_LOCK_SHARED, NULL))
+ if (!index->sync_and_lock(index, MAIL_LOCK_SHARED, NULL) &&
+ !index->nodiskspace)
return FALSE;
index->inconsistent = FALSE;
@@ -286,7 +287,7 @@
index->mmap_full_length = INDEX_FILE_MIN_SIZE;
index->mmap_base = mmap_anon(index->mmap_full_length);
if (index->mmap_base == MAP_FAILED)
- return index_file_set_syscall_error(index, path, "mmap_anon()");
+ return index_set_error(index, "mmap_anon() failed: %m");
mail_index_init_header(index, index->mmap_base);
index->header = index->mmap_base;
More information about the dovecot-cvs
mailing list