Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3369:b4a462cc8737 HEAD
Fix to mmap_disable=yes syncing
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 10 May 2005 22:33:18 +0300 |
parents | 1069b25164d1 |
children | 9f841114991d |
files | src/lib-index/mail-index.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index.c Tue May 10 21:20:47 2005 +0300 +++ b/src/lib-index/mail-index.c Tue May 10 22:33:18 2005 +0300 @@ -839,10 +839,12 @@ index->map = NULL; if (sync_to_index) { - /* make sure log file offsets get copied. most of the other - fields should stay the same. */ + /* make sure we did everything right. note that although the + message counts should be equal, the flag counters may not */ i_assert(hdr.messages_count == (*map)->hdr.messages_count); - (*map)->hdr = hdr; + i_assert(hdr.log_file_seq == (*map)->hdr.log_file_seq); + i_assert(hdr.log_file_int_offset == (*map)->hdr.log_file_int_offset); + i_assert(hdr.log_file_ext_offset == (*map)->hdr.log_file_ext_offset); } return ret < 0 ? -1 : 1;