Mercurial > dovecot > core-2.2
changeset 2550:79de8de19d5e HEAD
a few more asserts
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 03 Sep 2004 23:53:18 +0300 |
parents | e81d4021f85b |
children | 111bd1e6d15b |
files | src/lib-index/mail-index-lock.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-lock.c Fri Sep 03 23:50:02 2004 +0300 +++ b/src/lib-index/mail-index-lock.c Fri Sep 03 23:53:18 2004 +0300 @@ -78,8 +78,9 @@ if ((ret2 = mail_index_refresh(index)) < 0) return -1; if (ret > 0 && ret2 == 0) { - if (mail_index_lock_mprotect(index, - index->lock_type) < 0) + i_assert(lock_type == F_RDLCK); + i_assert(index->lock_type == F_RDLCK); + if (mail_index_lock_mprotect(index, lock_type) < 0) return -1; return 1; }