dovecot-2.2: dsync: Avoid unnecessary data stack memory usage.

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 20 15:07:53 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/8fe564dd4018
changeset: 17167:8fe564dd4018
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 20 17:07:32 2014 +0200
description:
dsync: Avoid unnecessary data stack memory usage.

diffstat:

 src/doveadm/dsync/dsync-mailbox-export.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r af7a606dc15c -r 8fe564dd4018 src/doveadm/dsync/dsync-mailbox-export.c
--- a/src/doveadm/dsync/dsync-mailbox-export.c	Thu Mar 20 17:00:31 2014 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-export.c	Thu Mar 20 17:07:32 2014 +0200
@@ -374,10 +374,12 @@
 	mail_search_args_unref(&search_args);
 
 	while (mailbox_search_next(search_ctx, &mail)) {
-		if (mail->uid <= exporter->last_common_uid)
-			ret = search_update_flag_change_guid(exporter, mail);
-		else
-			ret = search_add_save(exporter, mail);
+		T_BEGIN {
+			if (mail->uid <= exporter->last_common_uid)
+				ret = search_update_flag_change_guid(exporter, mail);
+			else
+				ret = search_add_save(exporter, mail);
+		} T_END;
 		if (ret < 0)
 			break;
 	}


More information about the dovecot-cvs mailing list