From: Timo Sirainen Date: Thu, 20 Mar 2014 15:07:32 +0000 (+0200) Subject: dsync: Avoid unnecessary data stack memory usage. X-Git-Tag: 2.2.13.rc1~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07c8b1b48eba7ad2693dbfeaa9916d837f006262;p=thirdparty%2Fdovecot%2Fcore.git dsync: Avoid unnecessary data stack memory usage. --- diff --git a/src/doveadm/dsync/dsync-mailbox-export.c b/src/doveadm/dsync/dsync-mailbox-export.c index 20980fcdda..9f1f11d531 100644 --- a/src/doveadm/dsync/dsync-mailbox-export.c +++ b/src/doveadm/dsync/dsync-mailbox-export.c @@ -374,10 +374,12 @@ dsync_mailbox_export_search(struct dsync_mailbox_exporter *exporter) 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; }