Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3924:8297377a569b HEAD
Don't break with INDEX=MEMORY and lock_method=dotlock
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Jan 2006 15:19:42 +0200 |
parents | e9d45ec624cb |
children | 19c42027b621 |
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 Sun Jan 22 14:57:03 2006 +0200 +++ b/src/lib-index/mail-index-lock.c Sun Jan 22 15:19:42 2006 +0200 @@ -167,7 +167,8 @@ if (ret > 0) return 1; - if (index->lock_method == MAIL_INDEX_LOCK_DOTLOCK) { + if (index->lock_method == MAIL_INDEX_LOCK_DOTLOCK && + !MAIL_INDEX_IS_IN_MEMORY(index)) { /* FIXME: exclusive locking will rewrite the index file every time. shouldn't really be needed.. reading doesn't require locks then, though */