dovecot-1.0: Reverted last commit. It contained unintended changes.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 9 20:02:13 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/3e284bbbb93d
changeset: 5375:3e284bbbb93d
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 09 20:01:47 2007 +0300
description:
Reverted last commit. It contained unintended changes.
diffstat:
1 file changed, 3 insertions(+), 12 deletions(-)
src/lib-storage/index/mbox/mbox-sync.c | 15 +++------------
diffs (32 lines):
diff -r 25efd6b1fe44 -r 3e284bbbb93d src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c Thu Aug 09 20:00:43 2007 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c Thu Aug 09 20:01:47 2007 +0300
@@ -1761,17 +1761,8 @@ __again:
before index syncing is started to avoid deadlocks, so we
don't have much choice either (well, easy ones anyway). */
int lock_type = mbox->mbox_readonly ? F_RDLCK : F_WRLCK;
- int ret;
-
- if ((ret = mbox_lock(mbox, lock_type, &lock_id)) <= 0) {
- if (ret == 0 || lock_type == F_RDLCK)
- return -1;
-
- /* try as read-only */
- if (mbox_lock(mbox, F_RDLCK, &lock_id) <= 0)
- return -1;
- mbox->mbox_readonly = TRUE;
- }
+ if (mbox_lock(mbox, lock_type, &lock_id) <= 0)
+ return -1;
}
if ((flags & MBOX_SYNC_LAST_COMMIT) != 0) {
@@ -1842,7 +1833,7 @@ __again:
if (mbox_sync_read_index_syncs(&sync_ctx, 1, &expunged) < 0)
return -1;
- if (sync_ctx.sync_rec.uid1 == 0 && !expunged) {
+ if (sync_ctx.sync_rec.uid1 == 0) {
if (mail_index_transaction_commit(&sync_ctx.t,
&seq, &offset) < 0) {
mail_storage_set_index_error(&mbox->ibox);
More information about the dovecot-cvs
mailing list