]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Removed obsolete code that also wasn't compiling because of previous commit.
authorTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2014 18:22:45 +0000 (21:22 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2014 18:22:45 +0000 (21:22 +0300)
src/lib-storage/index/mbox/mbox-lock.c

index c0b16e4fa5e10d125b95532bed3fb0b12d3b7712..3129cfca464639902bb11a1a1289640a6e8dad44 100644 (file)
@@ -798,11 +798,6 @@ int mbox_lock(struct mbox_mailbox *mbox, int lock_type,
        i_assert(lock_type == F_RDLCK || lock_type == F_WRLCK);
        i_assert(lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK);
 
-       /* mbox must be locked before index (the NULL check is for
-          MAILBOX_FLAG_KEEP_LOCKED) */
-       i_assert(mbox->box.index == NULL ||
-                mbox->box.index->lock_type != F_WRLCK);
-
        if (mbox->mbox_lock_type == F_UNLCK) {
                ret = mbox_update_locking(mbox, lock_type, &fcntl_locked);
                if (ret <= 0)