Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-storage/index/mbox/mbox-lock.h @ 2955:d5ee1bbd15f0 HEAD
Fixed mbox corruption in certain situations. Added more asserts to catch
similiar problems if there still happens to be any.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Dec 2004 22:26:00 +0200 |
parents | 6303ef092c5b |
children | b698ae839a18 |
line wrap: on
line source
#ifndef __MBOX_LOCK_H #define __MBOX_LOCK_H /* NOTE: if mbox file is not open, it's opened. if it is open but file has been overwritten (ie. inode has changed), it's reopened. */ int mbox_lock(struct index_mailbox *ibox, int lock_type, unsigned int *lock_id_r); int mbox_unlock(struct index_mailbox *ibox, unsigned int lock_id); #endif