Mercurial > dovecot > core-2.2
changeset 367:9b36fc3c1385 HEAD
lockfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Oct 2002 09:10:12 +0300 |
parents | 0da2b09461aa |
children | 44751b4d92e1 |
files | src/lib-index/mbox/mbox-lock.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-lock.c Sun Oct 06 09:08:26 2002 +0300 +++ b/src/lib-index/mbox/mbox-lock.c Sun Oct 06 09:10:12 2002 +0300 @@ -158,7 +158,7 @@ int mbox_lock_write(MailIndex *index) { - i_assert(index->mbox_lock_type != F_RDLCK); + i_assert(index->mbox_locks == 0 || index->mbox_lock_type != F_RDLCK); return mbox_lock(index, TRUE); } @@ -172,7 +172,6 @@ if (--index->mbox_locks > 0) return TRUE; - index->mbox_lock_type = F_UNLCK; failed = FALSE; #ifdef USE_FLOCK if (!mbox_lock_flock(index, F_UNLCK))