# HG changeset patch # User Timo Sirainen # Date 1115753598 -10800 # Node ID b4a462cc8737e4db1935b90248e33af3ad7fd5b2 # Parent 1069b25164d13b9523673747c9c38023f7ef36fb Fix to mmap_disable=yes syncing diff -r 1069b25164d1 -r b4a462cc8737 src/lib-index/mail-index.c --- 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;