dovecot-1.1: mailbox_sync(): Don't call mailbox_sync_next() - it...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 9 00:57:23 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/d8d1fdbe29bf
changeset: 7617:d8d1fdbe29bf
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 09 00:57:19 2008 +0300
description:
mailbox_sync(): Don't call mailbox_sync_next() - it's not necessary and it
just slows down the syncing.

diffstat:

1 file changed, 3 deletions(-)
src/lib-storage/mail-storage.c |    3 ---

diffs (19 lines):

diff -r dcdf6f9e1fc0 -r d8d1fdbe29bf src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Mon Jun 09 00:56:32 2008 +0300
+++ b/src/lib-storage/mail-storage.c	Mon Jun 09 00:57:19 2008 +0300
@@ -530,15 +530,12 @@ int mailbox_sync(struct mailbox *box, en
 		 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);
 }
 


More information about the dovecot-cvs mailing list