Mercurial > dovecot > core-2.2
changeset 219:79ae841efc11 HEAD
Index data file wasn't re-mmap()ed always when file size was changed,
resulting in corruption error messages.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 11 Sep 2002 20:45:03 +0300 |
parents | e506203cffa4 |
children | 94382d79ae47 |
files | src/lib-index/mail-index-data.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-data.c Tue Sep 10 06:40:58 2002 +0300 +++ b/src/lib-index/mail-index-data.c Wed Sep 11 20:45:03 2002 +0300 @@ -33,8 +33,7 @@ static int mmap_update(MailIndexData *data, uoff_t pos, size_t size) { - if (!data->dirty_mmap || (size != 0 && pos <= data->mmap_length && - pos+size <= data->mmap_length)) + if (!data->dirty_mmap && (size != 0 && pos+size <= data->mmap_length)) return TRUE; if (data->mmap_base != NULL)