Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2049:6bdabb83f1a2 HEAD
fix for last change
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 24 May 2004 04:01:42 +0300 |
parents | a4babfc85e0a |
children | ee1095ccfd23 |
files | src/lib-index/mail-index-lock.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-lock.c Mon May 24 02:52:15 2004 +0300 +++ b/src/lib-index/mail-index-lock.c Mon May 24 04:01:42 2004 +0300 @@ -346,7 +346,8 @@ /* if header size is smaller than what we have, we'll have to recreate the index to grow it. so don't even try regular locking. */ - if (index->hdr->header_size >= sizeof(*index->hdr)) { + if (index->map->hdr == &index->map->hdr_copy && + index->map->hdr->header_size < sizeof(*index->hdr)) { /* wait two seconds for exclusive lock */ ret = mail_index_lock(index, F_WRLCK, 2, TRUE, lock_id_r); if (ret > 0)