# HG changeset patch # User Timo Sirainen # Date 1102211360 -7200 # Node ID bc8ff03715b2d9329b4a43ae34ebbc638debc94c # Parent 43deb226d76903fbfa77b0faf5c9236a87849098 mmap_disable=yes: if mail_index_map() is called while syncing make sure we don't read past what is already synced into index. diff -r 43deb226d769 -r bc8ff03715b2 src/lib-index/mail-index.c --- a/src/lib-index/mail-index.c Sun Dec 05 03:47:03 2004 +0200 +++ b/src/lib-index/mail-index.c Sun Dec 05 03:49:20 2004 +0200 @@ -655,6 +655,12 @@ unsigned int i; int ret, retry; + if (index->log_locked) { + /* we're most likely syncing the index and we really don't + want to read more than what was synced last time. */ + sync_to_index = TRUE; + } + if ((*map)->hdr.indexid != 0) { /* sync this as a view from transaction log. */ index->sync_update = TRUE;