Mercurial > dovecot > core-2.2
changeset 3222:e38e04c7c67c HEAD
mail_index_write_base_header() didn't update the header in memory with
mmap_disable=no. It's used only with error correction, so after failure
trying to reopen index failed every time.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 24 Mar 2005 22:28:28 +0200 |
parents | af8fc972fe95 |
children | f3c1a9a32a8e |
files | src/lib-index/mail-index.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index.c Thu Mar 24 22:17:00 2005 +0200 +++ b/src/lib-index/mail-index.c Thu Mar 24 22:28:28 2005 +0200 @@ -1078,6 +1078,7 @@ memcpy(index->map->mmap_base, hdr, hdr_size); if (msync(index->map->mmap_base, hdr_size, MS_SYNC) < 0) return mail_index_set_syscall_error(index, "msync()"); + index->map->hdr = *hdr; } else { if (pwrite_full(index->fd, hdr, hdr_size, 0) < 0) { mail_index_set_syscall_error(index, "pwrite_full()");