]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mailbox_sync(): Don't call mailbox_sync_next() - it's not necessary and it
authorTimo Sirainen <tss@iki.fi>
Sun, 8 Jun 2008 21:57:19 +0000 (00:57 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 8 Jun 2008 21:57:19 +0000 (00:57 +0300)
just slows down the syncing.

--HG--
branch : HEAD

src/lib-storage/mail-storage.c

index 762462ade506ad3148af6c52d71976ca3a120a17..9dc401ca08b63e5bbb3b93f3a5a524dca94b5fc9 100644 (file)
@@ -530,15 +530,12 @@ int mailbox_sync(struct mailbox *box, enum mailbox_sync_flags flags,
                 struct mailbox_status *status_r)
 {
        struct mailbox_sync_context *ctx;
-        struct mailbox_sync_rec sync_rec;
 
        /* we don't care about mailbox's current state, so we might as well
           fix inconsistency state */
        flags |= MAILBOX_SYNC_FLAG_FIX_INCONSISTENT;
 
        ctx = mailbox_sync_init(box, flags);
-       while (mailbox_sync_next(ctx, &sync_rec))
-               ;
        return mailbox_sync_deinit(&ctx, status_items, status_r);
 }